[Mlir-commits] [mlir] [mlir][gpu] Fix crash in RemoveDeadValues pass with gpu.launch ops (PR #182711)
Fedor Nikolaev
llvmlistbot at llvm.org
Mon Feb 23 00:33:13 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))
----------------
felichita wrote:
A block appears multiple times in list.blocks when it has multiple predecessors once per incoming edge since liveness is tracked per-edge
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list