projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd9f0ee
)
Print out nodes sorted by their address to make it easier to find them in a list.
author
Chris Lattner
<sabre@nondot.org>
Sun, 9 Jan 2005 20:26:36 +0000
(20:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 9 Jan 2005 20:26:36 +0000
(20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19421
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index ce882e6f6e510c03560e5672b2ae363819bcda2f..2bd173950158443a72d319408d3f3bf0240244a4 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@
-922,9
+922,12
@@
void SDNode::dump() const {
void SelectionDAG::dump() const {
std::cerr << "SelectionDAG has " << AllNodes.size() << " nodes:";
- for (unsigned i = 0, e = AllNodes.size(); i != e; ++i) {
+ std::vector<SDNode*> Nodes(AllNodes);
+ std::sort(Nodes.begin(), Nodes.end());
+
+ for (unsigned i = 0, e = Nodes.size(); i != e; ++i) {
std::cerr << "\n ";
-
All
Nodes[i]->dump();
+ Nodes[i]->dump();
}
std::cerr << "\n\n";
}