[Mlir-commits] [mlir] [mlir][dataflow] Add arguemnt print for test-liveness-analysis (PR #169625)
Mehdi Amini
llvmlistbot at llvm.org
Wed Nov 26 03:39:05 PST 2025
================
@@ -56,6 +56,15 @@ struct TestLivenessAnalysisPass
liveness->print(os);
os << "\n";
}
+ for (mlir::Region ®ion : op->getRegions()) {
+ for (auto [index, argument] : llvm::enumerate(region.getArguments())) {
+ const Liveness *liveness = livenessAnalysis.getLiveness(argument);
+ assert(liveness && "expected a sparse lattice");
+ os << " argument: #" << index << ": ";
----------------
joker-eph wrote:
```suggestion
os << " argument: #" << index << ": ";
```
Increase indentation when printing region index.
https://github.com/llvm/llvm-project/pull/169625
More information about the Mlir-commits
mailing list