[llvm] [LSV] Insert casts to vectorize mismatched types (PR #134436)

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 11:56:10 PDT 2025


================
@@ -1495,7 +1629,7 @@ Vectorizer::collectEquivalenceClasses(BasicBlock::iterator Begin,
          /*IsLoad=*/LI != nullptr}]
         .emplace_back(&I);
   }
-
+  insertCastsToMergeClasses(Ret);
----------------
gandhi56 wrote:

That's a good point, I will postpone the merging of class until vectorization then. Thanks!

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


More information about the llvm-commits mailing list