[llvm] [SLP] Fix crash on trying to reshuffle a scalar that was vectorized. (PR #72295)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 13:17:53 PST 2023


================
@@ -9164,7 +9164,8 @@ BoUpSLP::tryToGatherSingleRegisterExtractElements(
       continue;
     }
     auto *VecTy = dyn_cast<FixedVectorType>(EI->getVectorOperandType());
-    if (!VecTy || !isa<ConstantInt, UndefValue>(EI->getIndexOperand()))
+    if (!VecTy || !isa<ConstantInt, UndefValue>(EI->getIndexOperand()) ||
----------------
alexey-bataev wrote:

Actually it does not need a new tracking mechanism, we can reuse the existing one. I can try to do it tomorrow, if you're ok with this

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


More information about the llvm-commits mailing list