[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp

Nate Begeman natebegeman at mac.com
Fri Aug 27 09:48:35 PDT 2004



Changes in directory llvm/lib/CodeGen:

PrologEpilogInserter.cpp updated: 1.35 -> 1.36
---
Log message:

Back out change to divide getSpillSize by 8 until I figure out why it breaks x86, which has register sizes in bits.

---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.35 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.36
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.35	Thu Aug 26 23:28:10 2004
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp	Fri Aug 27 11:48:24 2004
@@ -181,11 +181,11 @@
     int FrameIdx;
     if (FixedSlot == FixedSpillSlots+NumFixedSpillSlots) {
       // Nope, just spill it anywhere convenient.
-      FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg)/8,
+      FrameIdx = FFI->CreateStackObject(RegInfo->getSpillSize(Reg),
                                         RegInfo->getSpillAlignment(Reg)/8);
     } else {
       // Spill it to the stack where we must.
-      FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg)/8,
+      FrameIdx = FFI->CreateFixedObject(RegInfo->getSpillSize(Reg),
                                         FixedSlot->second);
     }
     StackSlots.push_back(FrameIdx);






More information about the llvm-commits mailing list