Don't compute latencies for regmask operands.

llvm-svn: 151211
This commit is contained in:
Jakob Stoklund Olesen 2012-02-22 22:52:52 +00:00
parent d9600dff1c
commit ff8fc50831

View File

@ -737,7 +737,9 @@ void ScheduleDAGInstrs::ComputeOperandLatency(SUnit *Def, SUnit *Use,
// %Q1<def> = VMULv8i16 %Q1<kill>, %Q3<kill>, ...
// What we want is to compute latency between def of %D6/%D7 and use of
// %Q3 instead.
DefIdx = DefMI->findRegisterDefOperandIdx(Reg, false, true, TRI);
unsigned Op2 = DefMI->findRegisterDefOperandIdx(Reg, false, true, TRI);
if (DefMI->getOperand(Op2).isReg())
DefIdx = Op2;
}
MachineInstr *UseMI = Use->getInstr();
// For all uses of the register, calculate the maxmimum latency