mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 21:00:00 +00:00
set the ppc64 stack pointer right, dynamic alloca now works for ppc64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56a752e00f
commit
10da957574
@ -261,7 +261,11 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
|
||||
setSetCCResultType(MVT::i32);
|
||||
setShiftAmountType(MVT::i32);
|
||||
setSetCCResultContents(ZeroOrOneSetCCResult);
|
||||
setStackPointerRegisterToSaveRestore(PPC::R1);
|
||||
|
||||
if (TM.getSubtarget<PPCSubtarget>().isPPC64())
|
||||
setStackPointerRegisterToSaveRestore(PPC::X1);
|
||||
else
|
||||
setStackPointerRegisterToSaveRestore(PPC::R1);
|
||||
|
||||
// We have target-specific dag combine patterns for the following nodes:
|
||||
setTargetDAGCombine(ISD::SINT_TO_FP);
|
||||
|
Loading…
Reference in New Issue
Block a user