forked from OSchip/llvm-project
parent
a67559c106
commit
d9f102b464
|
@ -224,12 +224,7 @@ bool AggressiveAntiDepBreaker::IsImplicitDefUse(MachineInstr *MI,
|
||||||
if (Reg == 0)
|
if (Reg == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
MachineOperand *Op = nullptr;
|
MachineOperand *Op = MI->findRegisterUseOperand(Reg, /*isKill=*/MO.isDef());
|
||||||
if (MO.isDef())
|
|
||||||
Op = MI->findRegisterUseOperand(Reg, true);
|
|
||||||
else
|
|
||||||
Op = MI->findRegisterDefOperand(Reg);
|
|
||||||
|
|
||||||
return(Op && Op->isImplicit());
|
return(Op && Op->isImplicit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue