[Mlir-commits] [mlir] [mlir][dataflow] Fix LivenessAnalysis/RemoveDeadValues handling of loop induction variables (PR #161117)

lonely eagle llvmlistbot at llvm.org
Wed Oct 1 10:07:32 PDT 2025


================
@@ -309,15 +310,29 @@ RunLivenessAnalysis::RunLivenessAnalysis(Operation *op) {
              << " has no liveness info (unreachable), mark dead";
       solver.getOrCreateState<Liveness>(result.value());
     }
+    SmallVector<Value> mustLiveValues;
+    if (auto loopOp = dyn_cast<LoopLikeOpInterface>(op)) {
----------------
linuxlonelyeagle wrote:

Maybe I should write the visit RegionBranchOpInterface code for the liveness analysis.

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


More information about the Mlir-commits mailing list