forked from OSchip/llvm-project
Avoid calls to setSubgraphColor in release mode. They generate lots of error messages and slow down compilation.
llvm-svn: 58336
This commit is contained in:
parent
e660fa88ee
commit
c0468cf03c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue