mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Don't compute latencies for regmask operands.
llvm-svn: 151211
This commit is contained in:
parent
d9600dff1c
commit
ff8fc50831
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user