[Vectorize] Use llvm::is_contained (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 18 Jun 2022 22:49:15 +0000 (15:49 -0700)
committerKazu Hirata <kazu@google.com>
Sat, 18 Jun 2022 22:49:15 +0000 (15:49 -0700)
llvm/lib/Transforms/Vectorize/VectorCombine.cpp

index c206a5c..94c690a 100644 (file)
@@ -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;