/// register.
VarInfo &getVarInfo(unsigned RegIdx);
/// register.
VarInfo &getVarInfo(unsigned RegIdx);
+ const std::vector<bool>& getAllocatablePhysicalRegisters() const {
+ return AllocatablePhysicalRegisters;
+ }
+
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, const BasicBlock *BB);
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
MachineInstr *MI);
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, const BasicBlock *BB);
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
MachineInstr *MI);
unsigned reg)
{
DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n');
unsigned reg)
{
DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n');
+ if (!lv_->getAllocatablePhysicalRegisters()[reg]) {
+ DEBUG(std::cerr << "\t\t\t\tnon allocatable register: ignoring\n");
+ return;
+ }
unsigned start = getInstructionIndex(*mi);
unsigned end = start;
unsigned start = getInstructionIndex(*mi);
unsigned end = start;