[llvm] [LSV] Insert casts to vectorize mismatched types (PR #134436)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 07:03:01 PDT 2025
================
@@ -1495,7 +1629,7 @@ Vectorizer::collectEquivalenceClasses(BasicBlock::iterator Begin,
/*IsLoad=*/LI != nullptr}]
.emplace_back(&I);
}
-
+ insertCastsToMergeClasses(Ret);
----------------
arsenm wrote:
This is eagerly mutating the IR before vectorization is performed? Should try to only select a type, and coerce as part of the final vectorization
https://github.com/llvm/llvm-project/pull/134436
More information about the llvm-commits
mailing list