[Mlir-commits] [mlir] [mlir][gpu] Fix crash in RemoveDeadValues pass with gpu.launch ops (PR #182711)

Matthias Springer llvmlistbot at llvm.org
Sun Feb 22 22:49:49 PST 2026


================
@@ -573,6 +576,29 @@ static void cleanUpDeadVals(MLIRContext *ctx, RDVFinalCleanupList &list) {
          << OpWithFlags(b.b->getParent()->getParentOp(),
                         OpPrintingFlags().skipRegions().printGenericOpForm());
     });
+    // Skip if already processed
+    if (processedBlocks.count(b.b))
----------------
matthias-springer wrote:

Under what circumstances would a block be visited multiple times?

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


More information about the Mlir-commits mailing list