[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


================
@@ -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(),
----------------
matthias-springer wrote:

What's the purpose of this check?

https://github.com/llvm/llvm-project/pull/182711


More information about the Mlir-commits mailing list