[llvm] [LV] Add initial support for partial alias masking (PR #177599)
Gaƫtan Bossu via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 25 22:59:32 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;
----------------
gbossu wrote:
Curious: Why is "with a possible loop-invariant mask" important to point out? I think we are just checking whether all instructions can be predicated or speculated here.
https://github.com/llvm/llvm-project/pull/177599
More information about the llvm-commits
mailing list