diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2002-12-13 10:42:31 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2002-12-13 10:42:31 +0000 |
| commit | 89ff3fbcd62fd8f687424fb9de11948b2feaf760 (patch) | |
| tree | b23fd1b8775ba9dfadd744585d1b57e6a6fdf834 /llvm/lib/CodeGen/RegAllocSimple.cpp | |
| parent | eda9c79bbf0c3956ab91f1aa81aaeab94c1bb992 (diff) | |
| download | bcm5719-llvm-89ff3fbcd62fd8f687424fb9de11948b2feaf760.tar.gz bcm5719-llvm-89ff3fbcd62fd8f687424fb9de11948b2feaf760.zip | |
Fixed bug with running out of registers. Also, reinstated namespace which
disappeared during the last checkin.
llvm-svn: 5007
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocSimple.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp index 62201692349..609eabf5161 100644 --- a/llvm/lib/CodeGen/RegAllocSimple.cpp +++ b/llvm/lib/CodeGen/RegAllocSimple.cpp @@ -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 @@ bool RegAllocSimple::runOnMachineFunction(MachineFunction &Fn) { // really delete the instruction delete MI; + + // make regs available to other instructions + clearAllRegs(); } //loop over each basic block |

