[Mlir-commits] [mlir] [mlir][dataflow] Use skipRegions to print region op (NFC) (PR #161066)
Mehdi Amini
llvmlistbot at llvm.org
Sun Sep 28 03:05:03 PDT 2025
================
@@ -151,7 +151,7 @@ void LivenessAnalysis::visitBranchOperand(OpOperand &operand) {
mayLive = true;
LDBG() << "[visitBranchOperand] Non-forwarded branch "
"operand may be live due to live result: "
- << result;
+ << OpWithFlags(op, OpPrintingFlags().skipRegions());
----------------
joker-eph wrote:
```suggestion
for (auto indexedResult : llvm::enumerate(op->getResults())) {
if (getLatticeElement(indexedResult.value())->isLive) {
mayLive = true;
LDBG() << "[visitBranchOperand] Non-forwarded branch "
"operand may be live due to live result #" << indexedResult.index() << ": "
<< OpWithFlags(indexedResult.value(), OpPrintingFlags().skipRegions());
```
https://github.com/llvm/llvm-project/pull/161066
More information about the Mlir-commits
mailing list