ARM does not support offset folding (yet). Disable it for now.

This fixes PR5031. Unfortunately, there is no small testcase :(

llvm-svn: 82643
This commit is contained in:
Anton Korobeynikov 2009-09-23 19:04:09 +00:00
parent e92f61e68b
commit 829a3a18d2
2 changed files with 7 additions and 0 deletions

View File

@ -4073,3 +4073,9 @@ void ARMTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return TargetLowering::LowerAsmOperandForConstraint(Op, Constraint, hasMemory,
Ops, DAG);
}
bool
ARMTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
// The ARM target isn't yet aware of offsets.
return false;
}

View File

@ -223,6 +223,7 @@ namespace llvm {
virtual unsigned getFunctionAlignment(const Function *F) const;
bool isShuffleMaskLegal(const SmallVectorImpl<int> &M, EVT VT) const;
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
private:
/// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
/// make the right decision when generating code for different targets.