1
0
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:
Alkis Evlogimenos 2003-12-13 05:26:39 +00:00
parent 6e511754e5
commit 2a41fcbef3

View File

@ -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);
}
}
}