mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Fixed bug with running out of registers. Also, reinstated namespace which
disappeared during the last checkin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
790f64bce8
commit
59b3eedf31
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user