forked from OSchip/llvm-project
[AMDGPU] SIFoldOperands: use isUseMIInFoldList. NFC.
This commit is contained in:
parent
dc8d63de5d
commit
8f798566a3
llvm/lib/Target/AMDGPU
|
@ -555,9 +555,7 @@ static bool tryToFoldACImm(const SIInstrInfo *TII,
|
|||
if (!UseReg.isVirtual())
|
||||
return false;
|
||||
|
||||
if (llvm::any_of(FoldList, [UseMI](const FoldCandidate &FC) {
|
||||
return FC.UseMI == UseMI;
|
||||
}))
|
||||
if (isUseMIInFoldList(FoldList, UseMI))
|
||||
return false;
|
||||
|
||||
MachineRegisterInfo &MRI = UseMI->getParent()->getParent()->getRegInfo();
|
||||
|
|
Loading…
Reference in New Issue