[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
================
@@ -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:
What's the reason for skipping these interfaces here?
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list