Skip to content

Commit 3062597

Browse files
committed
[LLVM] Skip dumping inline SDag children
If they're simple enough to render inline, we don't need to dump them again in the recursive walk.
1 parent 346a72f commit 3062597

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,9 @@ static void printrWithDepthHelper(raw_ostream &OS, const SDNode *N,
11651165
// Don't follow chain operands.
11661166
if (Op.getValueType() == MVT::Other)
11671167
continue;
1168+
// Don't print children that were fully rendered inline.
1169+
if (shouldPrintInline(*Op.getNode(), G))
1170+
continue;
11681171
OS << '\n';
11691172
printrWithDepthHelper(OS, Op.getNode(), G, depth - 1, indent + 2);
11701173
}

0 commit comments

Comments
 (0)