aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-28 17:23:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-28 17:23:13 +0000
commit83f5c856d92758d1b859d7ad554a2d7ce1eb0d1e (patch)
tree62dc5129a6dcd4ce96566b8eacf2c94a5cc9bb37 /include
parent803f5fc02f73651fecc342807939066b067b65b5 (diff)
downloadexternal_llvm-83f5c856d92758d1b859d7ad554a2d7ce1eb0d1e.zip
external_llvm-83f5c856d92758d1b859d7ad554a2d7ce1eb0d1e.tar.gz
external_llvm-83f5c856d92758d1b859d7ad554a2d7ce1eb0d1e.tar.bz2
Avoid calls to setSubgraphColor in release mode. They generate lots of error messages and slow down compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/DAGISelHeader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h
index e50ee7c..7c1e3c0 100644
--- a/include/llvm/CodeGen/DAGISelHeader.h
+++ b/include/llvm/CodeGen/DAGISelHeader.h
@@ -176,7 +176,9 @@ void SelectRoot(SelectionDAG &DAG) {
// Skip already selected nodes.
if (isSelected(Node->getNodeId()))
continue;
+#ifndef NDEBUG
DAG.setSubgraphColor(Node, "red");
+#endif
SDNode *ResNode = Select(SDValue(Node, 0));
// If node should not be replaced,
// continue with the next one.
@@ -184,8 +186,10 @@ void SelectRoot(SelectionDAG &DAG) {
continue;
// Replace node.
if (ResNode) {
+#ifndef NDEBUG
DAG.setSubgraphColor(ResNode, "yellow");
DAG.setSubgraphColor(ResNode, "black");
+#endif
ReplaceUses(Node, ResNode);
}
// If after the replacement this node is not used any more,
@@ -195,7 +199,6 @@ void SelectRoot(SelectionDAG &DAG) {
CurDAG->RemoveDeadNode(Node, &ISQU);
UpdateQueue(ISQU);
}
- //DAG.setSubgraphColor(Node, "black");
}
delete[] ISelQueued;