projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8d63d
)
[AMDGPU] SIFoldOperands: use isUseMIInFoldList. NFC.
author
Jay Foad
<jay.foad@amd.com>
Tue, 6 Apr 2021 16:48:31 +0000
(17:48 +0100)
committer
Jay Foad
<jay.foad@amd.com>
Tue, 6 Apr 2021 16:53:48 +0000
(17:53 +0100)
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index
3857d3e
..
c3ff29b
100644
(file)
--- a/
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@
-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();