[llvm] [SLP][REVEC] Support more mask pattern usage in shufflevector. (PR #106212)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 04:13:22 PDT 2024


================
@@ -309,7 +308,7 @@ static unsigned getShufflevectorNumGroups(ArrayRef<Value *> VL) {
     auto *SV = cast<ShuffleVectorInst>(VL[I]);
     Value *Src = SV->getOperand(0);
     ArrayRef<Value *> Group = VL.slice(I, GroupSize);
-    SmallVector<int> ExtractionIndex(SVNumElements);
+    SmallBitVector UsedIndex(SVNumElements);
----------------
alexey-bataev wrote:

You don't need to account all elements here, just group indices should be enough, no?

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


More information about the llvm-commits mailing list