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

Sam Tebbs via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 14 03:02:42 PDT 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,
----------------
SamTebbs33 wrote:

The problem is that the mask needs to be ANDed with the active lane mask, and that is emitted as part of the plan creation.

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


More information about the llvm-branch-commits mailing list