[llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 05:51:09 PST 2025


================
@@ -479,7 +479,11 @@ class LoopVectorizationPlanner {
   /// Build VPlans for the specified \p UserVF and \p UserIC if they are
   /// non-zero or all applicable candidate VFs otherwise. If vectorization and
   /// interleaving should be avoided up-front, no plans are generated.
-  void plan(ElementCount UserVF, unsigned UserIC);
+  /// DiffChecks is a list of pointer pairs that should be checked for aliasing,
----------------
fhahn wrote:

Yep that looks like a good first step. Would be good if updating the masks could also be done there (the PopCount introduction) and we could avoid making `addActiveLaneMask` more complex

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


More information about the llvm-commits mailing list