[llvm] [NFC][LV]: Differentiate between Pred and Unpred masked operations. (PR #169509)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 14:21:52 PDT 2026


================
@@ -435,10 +435,13 @@ class LoopVectorizationLegality {
     return LAI->getDepChecker().getStoreLoadForwardSafeDistanceInBits();
   }
 
-  /// Returns true if vector representation of the instruction \p I
-  /// requires mask.
-  bool isMaskRequired(const Instruction *I) const {
-    return MaskedOp.contains(I);
+  /// Returns true if instruction \p I requires a mask for vectorization.
+  /// This accounts for both control flow masking (conditionally executed
+  /// blocks) and tail-folding masking (predicated loop vectorization).
+  bool isMaskRequired(const Instruction *I, bool LoopPredicated) const {
----------------
fhahn wrote:

looks like the rename is still outstanding?

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


More information about the llvm-commits mailing list