[llvm] [LV] Add initial support for partial alias masking (PR #177599)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 00:59:58 PST 2026
================
@@ -300,9 +300,17 @@ class LoopVectorizationLegality {
/// masking.
bool canFoldTailByMasking() const;
+ /// Returns true if all instructions in the loop support masking or
+ /// speculation.
+ ///
+ /// The mask may be loop-invariant if it represents a maximum safe dependence
+ /// distance (alias mask) or loop-variant if it is based on the induction
+ /// variable (e.g. tail-folding).
+ bool canMaskLoop() const;
----------------
MacDue wrote:
I've created https://github.com/llvm/llvm-project/pull/182457 as a simplified PR that only supports tail-folding.
https://github.com/llvm/llvm-project/pull/177599
More information about the llvm-commits
mailing list