mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
Handle explicit physical register defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efe995a406
commit
9435eda699
@ -286,12 +286,15 @@ void LiveIntervals::computeIntervals()
|
||||
for (int i = instr->getNumOperands() - 1; i >= 0; --i) {
|
||||
MachineOperand& mop = instr->getOperand(i);
|
||||
|
||||
if (!mop.isVirtualRegister())
|
||||
if (!mop.isRegister())
|
||||
continue;
|
||||
|
||||
if (mop.opIsDefOnly() || mop.opIsDefAndUse()) {
|
||||
unsigned reg = mop.getAllocatedRegNum();
|
||||
handleVirtualRegisterDef(mbb, mi, reg);
|
||||
if (reg < MRegisterInfo::FirstVirtualRegister)
|
||||
handlePhysicalRegisterDef(mbb, mi, reg);
|
||||
else
|
||||
handleVirtualRegisterDef(mbb, mi, reg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user