[llvm] [VPlan] Model first memory runtime checks as VPlan recipes. (PR #221483)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 06:41:03 PDT 2026


================
@@ -1821,8 +1811,33 @@ class GeneratedRTChecks {
   }
 
   /// Return true if any runtime checks have been added
-  bool hasChecks() const {
-    return getSCEVChecks().first || getMemRuntimeChecks().first;
+  bool hasChecks() const { return getSCEVChecks().first || HasMemChecks; }
+
+  /// Drop the pre-built memory check block in favour of VPlan recipes.
+  /// TODO: Remove once the checks can be costed in VPlan, before VF selection.
----------------
fhahn wrote:

This will be a bigger change, as it will probably require costing for all VPInstructions (currently most are limited to return costs with underlying instructions, whereas the runtime check VPInstructions won't have any underlying instructions)

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


More information about the llvm-commits mailing list