[llvm] [SLP][REVEC] Make getAltInstrMask and getGatherCost vectorize vector instructions. (PR #99461)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 04:46:29 PDT 2024
================
@@ -11388,7 +11393,8 @@ InstructionCost BoUpSLP::getGatherCost(ArrayRef<Value *> VL, bool ForPoisonSrc,
}
DuplicateNonConst = true;
- ShuffledElements.setBit(I);
+ for (unsigned J = 0; J != ScalarTyNumElements; ++J)
+ ShuffledElements.setBit(I * ScalarTyNumElements + J);
----------------
alexey-bataev wrote:
```suggestion
ShuffledElements.setBit(I * ScalarTyNumElements, I * ScalarTyNumElements + ScalarTyNumElements);
```
https://github.com/llvm/llvm-project/pull/99461
More information about the llvm-commits
mailing list