mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Handle explicit physical register defs.
llvm-svn: 10445
This commit is contained in:
parent
6e511754e5
commit
2a41fcbef3
@ -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…
Reference in New Issue
Block a user