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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 14:07:24 PDT 2026


================
@@ -1777,32 +1782,17 @@ class GeneratedRTChecks {
   /// unused.
   ~GeneratedRTChecks() {
     SCEVExpanderCleaner SCEVCleaner(SCEVExp);
-    SCEVExpanderCleaner MemCheckCleaner(MemCheckExp);
     bool SCEVChecksUsed = !SCEVCheckBlock || !pred_empty(SCEVCheckBlock);
-    bool MemChecksUsed = !MemCheckBlock || !pred_empty(MemCheckBlock);
     if (SCEVChecksUsed)
       SCEVCleaner.markResultUsed();
----------------
fhahn wrote:

If they are used, they will be connected to the CFG and that is used as signal to not remove them

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


More information about the llvm-commits mailing list