#include "Support/Statistic.h"
#include <map>
-//namespace {
+namespace {
struct RegAllocSimple : public FunctionPass {
TargetMachine &TM;
MachineBasicBlock *CurrMBB;
}
};
-//}
+}
unsigned RegAllocSimple::allocateStackSpaceFor(unsigned VirtReg,
const TargetRegisterClass *regClass)
// really delete the instruction
delete MI;
+
+ // make regs available to other instructions
+ clearAllRegs();
}
//loop over each basic block