mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Ignore non-allocatable physical registers in live interval analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d65a12fe6
commit
4c214d2bf0
@ -202,6 +202,10 @@ public:
|
|||||||
/// register.
|
/// register.
|
||||||
VarInfo &getVarInfo(unsigned RegIdx);
|
VarInfo &getVarInfo(unsigned RegIdx);
|
||||||
|
|
||||||
|
const std::vector<bool>& getAllocatablePhysicalRegisters() const {
|
||||||
|
return AllocatablePhysicalRegisters;
|
||||||
|
}
|
||||||
|
|
||||||
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, const BasicBlock *BB);
|
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, const BasicBlock *BB);
|
||||||
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
||||||
MachineInstr *MI);
|
MachineInstr *MI);
|
||||||
|
@ -183,6 +183,10 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb,
|
|||||||
unsigned reg)
|
unsigned reg)
|
||||||
{
|
{
|
||||||
DEBUG(std::cerr << "\t\t\tregister: ";printRegName(reg); std::cerr << '\n');
|
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 start = getInstructionIndex(*mi);
|
||||||
unsigned end = start;
|
unsigned end = start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user