mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
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:
parent
e92f61e68b
commit
829a3a18d2
@ -4073,3 +4073,9 @@ void ARMTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
|
|||||||
return TargetLowering::LowerAsmOperandForConstraint(Op, Constraint, hasMemory,
|
return TargetLowering::LowerAsmOperandForConstraint(Op, Constraint, hasMemory,
|
||||||
Ops, DAG);
|
Ops, DAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
ARMTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
|
||||||
|
// The ARM target isn't yet aware of offsets.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -223,6 +223,7 @@ namespace llvm {
|
|||||||
virtual unsigned getFunctionAlignment(const Function *F) const;
|
virtual unsigned getFunctionAlignment(const Function *F) const;
|
||||||
|
|
||||||
bool isShuffleMaskLegal(const SmallVectorImpl<int> &M, EVT VT) const;
|
bool isShuffleMaskLegal(const SmallVectorImpl<int> &M, EVT VT) const;
|
||||||
|
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
|
||||||
private:
|
private:
|
||||||
/// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
|
/// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
|
||||||
/// make the right decision when generating code for different targets.
|
/// make the right decision when generating code for different targets.
|
||||||
|
Loading…
Reference in New Issue
Block a user