[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocSimple.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Dec 13 04:43:00 PST 2002
Changes in directory llvm/lib/CodeGen:
RegAllocSimple.cpp updated: 1.8 -> 1.9
---
Log message:
Fixed bug with running out of registers. Also, reinstated namespace which
disappeared during the last checkin.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.8 llvm/lib/CodeGen/RegAllocSimple.cpp:1.9
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.8 Fri Dec 13 03:54:36 2002
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Fri Dec 13 04:42:31 2002
@@ -20,7 +20,7 @@
#include "Support/Statistic.h"
#include <map>
-//namespace {
+namespace {
struct RegAllocSimple : public FunctionPass {
TargetMachine &TM;
MachineBasicBlock *CurrMBB;
@@ -111,7 +111,7 @@
}
};
-//}
+}
unsigned RegAllocSimple::allocateStackSpaceFor(unsigned VirtReg,
const TargetRegisterClass *regClass)
@@ -289,6 +289,9 @@
// really delete the instruction
delete MI;
+
+ // make regs available to other instructions
+ clearAllRegs();
}
//loop over each basic block
More information about the llvm-commits
mailing list