[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp
Evan Cheng
evan.cheng at apple.com
Wed Dec 6 18:25:49 PST 2006
Changes in directory llvm/lib/CodeGen:
PrologEpilogInserter.cpp updated: 1.61 -> 1.62
---
Log message:
Initialize {Min|Max}CSFrameIndex properly.
---
Diffs of the changes: (+4 -2)
PrologEpilogInserter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.61 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.62
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.61 Thu Sep 28 13:52:32 2006
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Wed Dec 6 20:25:34 2006
@@ -115,6 +115,10 @@
int FrameSetupOpcode = RegInfo->getCallFrameSetupOpcode();
int FrameDestroyOpcode = RegInfo->getCallFrameDestroyOpcode();
+ // These are used to keep track the callee-save area. Initialize them.
+ MinCSFrameIndex = INT_MAX;
+ MaxCSFrameIndex = 0;
+
// Early exit for targets which have no callee saved registers and no call
// frame setup/destroy pseudo instructions.
if ((CSRegs == 0 || CSRegs[0] == 0) &&
@@ -174,8 +178,6 @@
// Now that we know which registers need to be saved and restored, allocate
// stack slots for them.
- MinCSFrameIndex = INT_MAX;
- MaxCSFrameIndex = 0;
for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
unsigned Reg = CSI[i].getReg();
const TargetRegisterClass *RC = CSI[i].getRegClass();
More information about the llvm-commits
mailing list