[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:31:18 PST 2026
================
@@ -511,8 +511,10 @@ static void processBranchOp(BranchOpInterface branchOp, RunLivenessAnalysis &la,
// Do (2)
BitVector successorNonLive =
markLives(operandValues, nonLiveSet, la).flip();
- collectNonLiveValues(nonLiveSet, successorBlock->getArguments(),
- successorNonLive);
+ if (std::distance(successorBlock->pred_begin(),
----------------
felichita wrote:
Block args with multiple predecessors act as phi nodes - removing them requires updating all predecessor terminators simultaneously
https://github.com/llvm/llvm-project/pull/182711
More information about the Mlir-commits
mailing list