Changes in directory llvm/lib/Target/PowerPC:
PPCFrameInfo.h updated: 1.10 -> 1.11 PPCTargetMachine.cpp updated: 1.107 -> 1.108 --- Log message: make sure to safe LR8 in the right stack slot for PPC64 --- Diffs of the changes: (+8 -3) PPCFrameInfo.h | 9 +++++++-- PPCTargetMachine.cpp | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) Index: llvm/lib/Target/PowerPC/PPCFrameInfo.h diff -u llvm/lib/Target/PowerPC/PPCFrameInfo.h:1.10 llvm/lib/Target/PowerPC/PPCFrameInfo.h:1.11 --- llvm/lib/Target/PowerPC/PPCFrameInfo.h:1.10 Thu Nov 16 16:43:37 2006 +++ llvm/lib/Target/PowerPC/PPCFrameInfo.h Fri Nov 17 19:34:43 2006 @@ -26,8 +26,13 @@ public: PPCFrameInfo(const TargetMachine &tm, bool LP64) : TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TM(tm) { - LR[0].first = PPC::LR; - LR[0].second = LP64 ? 16 : 8; + if (LP64) { + LR[0].first = PPC::LR8; + LR[0].second = 16; + } else { + LR[0].first = PPC::LR; + LR[0].second = 8; + } } const std::pair<unsigned, int> * Index: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.107 llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.108 --- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.107 Wed Sep 20 12:12:19 2006 +++ llvm/lib/Target/PowerPC/PPCTargetMachine.cpp Fri Nov 17 19:34:43 2006 @@ -83,7 +83,7 @@ bool is64Bit) : Subtarget(M, FS, is64Bit), DataLayout(Subtarget.getTargetDataString()), InstrInfo(*this), - FrameInfo(*this, false), JITInfo(*this, is64Bit), TLInfo(*this), + FrameInfo(*this, is64Bit), JITInfo(*this, is64Bit), TLInfo(*this), InstrItins(Subtarget.getInstrItineraryData()) { if (getRelocationModel() == Reloc::Default) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits