[PATCH] D12568: SelectionDAGDumper: Avoid unnecessary newlines
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 10:56:51 PDT 2015
MatzeB created this revision.
MatzeB added a reviewer: resistor.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Before:
t0 = EntryToken:ch
t0: <multiple use>
t0: <multiple use>
t1 = CopyFromReg:v4f32,ch t0, Register:v4f32 %vreg0
t25 = IMPLICIT_DEF:v4f32
t26 = HADDPSrr:v4f32 t1, t25
t23 = CopyToReg:ch,glue t0, Register:v4f32 %XMM0, t26
t23: <multiple use>
t23: <multiple use>
t24 = RETQ:ch Register:v4f32 %XMM0, t23, t23:1
After:
t0: <multiple use>
t0: <multiple use>
t1 = CopyFromReg:v4f32,ch t0, Register:v4f32 %vreg0
t26 = X86ISD::FHADD:v4f32 t1, undef:v4f32
t23 = CopyToReg:ch,glue t0, Register:v4f32 %XMM0, t26
t23: <multiple use>
t21 = TargetConstant:i16<0>
t23: <multiple use>
t24 = X86ISD::RET_FLAG:ch t23, t21, Register:v4f32 %XMM0, t23:1
Repository:
rL LLVM
http://reviews.llvm.org/D12568
Files:
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Index: lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -598,11 +598,10 @@
if (Op.getNode()->hasOneUse())
DumpNodes(Op.getNode(), indent+2, G);
else
- dbgs() << "\n" << std::string(indent+2, ' ')
- << PrintNodeId(*Op.getNode()) << ": <multiple use>";
+ dbgs() << std::string(indent+2, ' ')
+ << PrintNodeId(*Op.getNode()) << ": <multiple use>\n";
}
- dbgs() << '\n';
dbgs().indent(indent);
N->dump(G);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12568.33832.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150902/023068c8/attachment.bin>
More information about the llvm-commits
mailing list