[llvm] [VPlan] Connect (MemRuntime|SCEV)Check blocks as VPlan transform (NFC). (PR #143879)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 5 14:04:43 PDT 2025


================
@@ -560,6 +564,9 @@ class LoopVectorizationPlanner {
                                   VPRecipeBuilder &RecipeBuilder,
                                   ElementCount MinVF);
 
+  /// Add the runtime checks from \p RTChecks to \p VPlan.
+  void addRuntimeChecks(VPlan &Plan, GeneratedRTChecks &RTChecks) const;
----------------
fhahn wrote:

updated the naming, but still left the separate function in LoopVectorizationPlanner, to avoid having to pass Hints/OptForSize (and ORE). I think we can move the asserts to getSCEVChecks/getMemRuntimeChecks and emit a remark in both cases, but this should probably also be done separately?

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


More information about the llvm-commits mailing list