mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 17:38:39 +00:00
Disable constant-offset folding for PowerPC, as the PowerPC target
isn't yet prepared for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4401361a2f
commit
54aeea39a7
@ -4912,3 +4912,9 @@ SDValue PPCTargetLowering::LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) {
|
|||||||
return DAG.getCopyFromReg(DAG.getEntryNode(), is31 ? PPC::R31 : PPC::R1,
|
return DAG.getCopyFromReg(DAG.getEntryNode(), is31 ? PPC::R31 : PPC::R1,
|
||||||
MVT::i32);
|
MVT::i32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
PPCTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
|
||||||
|
// The PowerPC target isn't yet aware of offsets.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -329,6 +329,8 @@ namespace llvm {
|
|||||||
SDValue Ret,
|
SDValue Ret,
|
||||||
SelectionDAG &DAG) const;
|
SelectionDAG &DAG) const;
|
||||||
|
|
||||||
|
virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SDValue getFramePointerFrameIndex(SelectionDAG & DAG) const;
|
SDValue getFramePointerFrameIndex(SelectionDAG & DAG) const;
|
||||||
SDValue getReturnAddrFrameIndex(SelectionDAG & DAG) const;
|
SDValue getReturnAddrFrameIndex(SelectionDAG & DAG) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user