[llvm] [SLP][REVEC] Initial commits. (PR #98269)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 05:58:25 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())
----------------
alexey-bataev wrote:
What if the number of elements in ScalarTy and in VecTy is different, is this possible?
https://github.com/llvm/llvm-project/pull/98269
More information about the llvm-commits
mailing list