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

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 09:21:22 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:

I've re-worked it to add the masks when attaching the runtime check block as suggested in a commit [here](https://github.com/SamTebbs33/llvm-project/commit/6e144b5351d47dc8e25591af373357f419266655). Please let me know what you think about this approach.

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


More information about the llvm-commits mailing list