summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-17 19:33:52 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-17 19:33:52 +0000
commite7d2c24a7dbf2aa40852bdc3b72f07457c99cf80 (patch)
tree06de8a01f5497354627a301ea62cf4fe8a81fc96 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent2d7d14262a9142e74118d6df8ae09400e086003a (diff)
downloadbcm5719-llvm-e7d2c24a7dbf2aa40852bdc3b72f07457c99cf80.tar.gz
bcm5719-llvm-e7d2c24a7dbf2aa40852bdc3b72f07457c99cf80.zip
Make it simplier to dump DAGs while in DAGCombiner. Remove a nasty optimization.
llvm-svn: 31009
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 5a0f5b1e99f..9faf703b01f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2684,7 +2684,7 @@ void SelectionDAG::dump() const {
DumpNodes(Nodes[i], 2, this);
}
- DumpNodes(getRoot().Val, 2, this);
+ if (getRoot().Val) DumpNodes(getRoot().Val, 2, this);
std::cerr << "\n\n";
}
OpenPOWER on IntegriCloud