[Mlir-commits] [mlir] [MLIR][RemoveDeadValues] Fix affine.for induction variable incorrectly removed (PR #172612)
Francisco Geiman Thiesen
llvmlistbot at llvm.org
Wed Dec 17 13:02:40 PST 2025
================
@@ -327,6 +328,32 @@ RunLivenessAnalysis::RunLivenessAnalysis(Operation *op) {
solver.load<LivenessAnalysis>(symbolTable);
LDBG() << "Initializing and running solver";
(void)solver.initializeAndRun(op);
+
+ // Mark block arguments of RegionBranchOpInterface ops that are NOT successor
+ // inputs as live. These include induction variables (IVs) like those in
+ // affine.for or scf.for. The fix in visitBranchOperand() only handles this
----------------
FranciscoThiesen wrote:
I think it's worth removing the #161117 code here. Let me do this as part of this PR. @joker-eph or @linuxlonelyeagle if you'd prefer me to remove the redundant code in a follow-up PR, let me know,
https://github.com/llvm/llvm-project/pull/172612
More information about the Mlir-commits
mailing list