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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 06:12:49 PST 2025


================
@@ -705,9 +707,15 @@ class LoopVectorizationLegality {
   AssumptionCache *AC;
 
   /// While vectorizing these instructions we have to generate a
-  /// call to the appropriate masked intrinsic or drop them in case of
-  /// conditional assumes.
-  SmallPtrSet<const Instruction *, 8> MaskedOp;
+  /// call to the appropriate masked intrinsic or drop them.
+  /// To differentiate between needing masked op because there is a conditional
+  /// executed block or because of predicated loop, we keep two lists:
+  /// 1) UnpredMaskedOp - instructions that need masking if we are
+  ///    in conditionally executed block.
+  /// 2) PredMaskedOp - instructions that need masking if we are in a predicated
----------------
david-arm wrote:

I think this line exceeds the 80 char limit?

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


More information about the llvm-commits mailing list