[llvm] [SLP][REVEC] Initial commits. (PR #98269)
Han-Kuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 10:11:42 PDT 2024
================
@@ -11807,10 +11824,10 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
Value *castToScalarTyElem(Value *V,
std::optional<bool> IsSigned = std::nullopt) {
auto *VecTy = cast<VectorType>(V->getType());
- if (VecTy->getElementType() == ScalarTy)
+ if (VecTy->getElementType() == ScalarTy->getScalarType())
----------------
HanKuanChen wrote:
Possible. They may have different number of elements.
The number of elements for `VecTy` is a multiple of `ScalarTy`.
https://github.com/llvm/llvm-project/pull/98269
More information about the llvm-commits
mailing list