[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Chris Lattner
sabre at nondot.org
Tue Oct 17 18:20:57 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelLowering.cpp updated: 1.213 -> 1.214
---
Log message:
set the ppc64 stack pointer right, dynamic alloca now works for ppc64
---
Diffs of the changes: (+5 -1)
PPCISelLowering.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.213 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.214
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.213 Tue Oct 17 20:18:48 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Tue Oct 17 20:20:43 2006
@@ -261,7 +261,11 @@
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);
More information about the llvm-commits
mailing list