[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 30 10:19:34 PDT 2005
Changes in directory llvm/lib/CodeGen:
PrologEpilogInserter.cpp updated: 1.48 -> 1.49
---
Log message:
now that we have a reg class to spill with, get this info from the regclass
---
Diffs of the changes: (+3 -4)
PrologEpilogInserter.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.48 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.49
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.48 Fri Sep 30 11:59:07 2005
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Fri Sep 30 12:19:22 2005
@@ -165,6 +165,7 @@
// stack slots for them.
for (unsigned i = 0, e = RegsToSave.size(); i != e; ++i) {
unsigned Reg = RegsToSave[i].first;
+ const TargetRegisterClass *RC = RegsToSave[i].second;
// Check to see if this physreg must be spilled to a particular stack slot
// on this target.
@@ -176,12 +177,10 @@
int FrameIdx;
if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
// Nope, just spill it anywhere convenient.
- FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg)/8,
- RegInfo->getSpillAlignment(Reg)/8);
+ FrameIdx = FFI->CreateStackObject(RC->getSize(), RC->getAlignment());
} else {
// Spill it to the stack where we must.
- FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg)/8,
- FixedSlot->second);
+ FrameIdx = FFI->CreateFixedObject(RC->getSize(), FixedSlot->second);
}
StackSlots.push_back(FrameIdx);
}
More information about the llvm-commits
mailing list