[llvm] [SLP][REVEC] Use VL.front()->getType() as ScalarTy. (PR #102437)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 04:43:56 PDT 2024


================
@@ -12391,8 +12391,8 @@ Value *BoUpSLP::vectorizeOperand(TreeEntry *E, unsigned NodeIdx,
     }
     if (IsSameVE) {
       auto FinalShuffle = [&](Value *V, ArrayRef<int> Mask) {
-        ShuffleInstructionBuilder ShuffleBuilder(
-            cast<VectorType>(V->getType())->getElementType(), Builder, *this);
+        ShuffleInstructionBuilder ShuffleBuilder(VL.front()->getType(), Builder,
----------------
alexey-bataev wrote:

What of the type is affected by MinBitwidth analysis?

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


More information about the llvm-commits mailing list