[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))
+ continue;
+ // Skip entry blocks of functions - handled by processFuncOp
+ if (b.b->isEntryBlock() && isa<FunctionOpInterface>(b.b->getParentOp()))
----------------
matthias-springer wrote:
How is the attached test case (`gpu.launch`) related to this change?
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list