[llvm] [LV] Add initial support for partial alias masking (PR #177599)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 26 03:36:58 PST 2026


================
@@ -300,9 +300,13 @@ class LoopVectorizationLegality {
   /// masking.
   bool canFoldTailByMasking() const;
 
+  /// Returns true if we can vectorize this loop with a possibly loop-invariant
+  /// mask.
+  bool canMaskLoop() const;
----------------
MacDue wrote:

To make it clearer what the difference is between `canMaskLoop` and  `canFoldTailByMasking`.

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


More information about the llvm-commits mailing list