[llvm] [SLP][REVEC] Make Instruction::Select support vector instructions. (PR #100507)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 10:17:41 PDT 2024


================
@@ -9713,6 +9713,17 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
         }
         VecCost = std::min(VecCost, IntrinsicCost);
       }
+      if (auto *SI = dyn_cast<SelectInst>(VL0)) {
----------------
alexey-bataev wrote:

Why this is specific only for selects?

https://github.com/llvm/llvm-project/pull/100507


More information about the llvm-commits mailing list