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:
06dc402
)
[Vectorize] Use llvm::is_contained (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 18 Jun 2022 22:49:15 +0000
(15:49 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 18 Jun 2022 22:49:15 +0000
(15:49 -0700)
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index
c206a5c
..
94c690a
100644
(file)
--- a/
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@
-1270,7
+1270,7
@@
bool VectorCombine::foldSelectShuffle(Instruction &I, bool FromReduction) {
auto *SV = dyn_cast<ShuffleVectorInst>(U);
if (!SV || SV->getType() != VT)
return false;
- if (
find(Shuffles, SV) == Shuffles.end(
))
+ if (
!llvm::is_contained(Shuffles, SV
))
Shuffles.push_back(SV);
}
return true;