[Mlir-commits] [mlir] [mlir][opt][RemoveDeadValues] Fix crash when processing ops with regions that don't implement RegionBranchOpInterface (PR #182711)
Fedor Nikolaev
llvmlistbot at llvm.org
Mon Feb 23 08:39:27 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) &&
----------------
felichita wrote:
Everything is correct. I've removed my changes from DataFlow
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list