[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 06:33:22 PDT 2024
================
@@ -14061,7 +14061,17 @@ Value *BoUpSLP::vectorizeTree(
CloneGEP->takeName(GEP);
Ex = CloneGEP;
} else {
- Ex = Builder.CreateExtractElement(Vec, Lane);
+ if (auto *VecTy = dyn_cast<FixedVectorType>(Scalar->getType())) {
----------------
alexey-bataev wrote:
`else if` looks natural here
https://github.com/llvm/llvm-project/pull/99499
More information about the llvm-commits
mailing list