[Mlir-commits] [mlir] [mlir][gpu] Fix crash in RemoveDeadValues pass with gpu.launch ops (PR #182711)
Matthias Springer
llvmlistbot at llvm.org
Mon Feb 23 00:43:07 PST 2026
================
@@ -237,6 +238,12 @@ RunLivenessAnalysis::RunLivenessAnalysis(Operation *op) {
for (auto blockArg : llvm::enumerate(block.getArguments())) {
if (getLiveness(blockArg.value()))
continue;
+ // Skip block args of ops with regions that are not
+ // RegionBranchOpInterface or FunctionOpInterface
+ // (e.g. gpu.launch) - solver doesn't analyze their regions
+ if (!isa<RegionBranchOpInterface>(op) &&
----------------
matthias-springer wrote:
That being said, it's possible that there's a bug here. But it doesn't show in the attached test case.
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list