[llvm] [SLP][REVEC] Make ShuffleCostEstimator and ShuffleInstructionBuilder support vector instructions. (PR #99499)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 10:41:31 PDT 2024


================
@@ -14060,6 +14060,16 @@ Value *BoUpSLP::vectorizeTree(
             if (GEP->hasName())
               CloneGEP->takeName(GEP);
             Ex = CloneGEP;
+          } else if (auto *VecTy =
+                         dyn_cast<FixedVectorType>(Scalar->getType())) {
+            unsigned VecTyNumElements = VecTy->getNumElements();
----------------
alexey-bataev wrote:

Add assertion that this may happen only if REVEC is on 

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


More information about the llvm-commits mailing list