mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
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
This commit is contained in:
parent
803f5fc02f
commit
83f5c856d9
@ -176,7 +176,9 @@ void SelectRoot(SelectionDAG &DAG) {
|
|||||||
// Skip already selected nodes.
|
// Skip already selected nodes.
|
||||||
if (isSelected(Node->getNodeId()))
|
if (isSelected(Node->getNodeId()))
|
||||||
continue;
|
continue;
|
||||||
|
#ifndef NDEBUG
|
||||||
DAG.setSubgraphColor(Node, "red");
|
DAG.setSubgraphColor(Node, "red");
|
||||||
|
#endif
|
||||||
SDNode *ResNode = Select(SDValue(Node, 0));
|
SDNode *ResNode = Select(SDValue(Node, 0));
|
||||||
// If node should not be replaced,
|
// If node should not be replaced,
|
||||||
// continue with the next one.
|
// continue with the next one.
|
||||||
@ -184,8 +186,10 @@ void SelectRoot(SelectionDAG &DAG) {
|
|||||||
continue;
|
continue;
|
||||||
// Replace node.
|
// Replace node.
|
||||||
if (ResNode) {
|
if (ResNode) {
|
||||||
|
#ifndef NDEBUG
|
||||||
DAG.setSubgraphColor(ResNode, "yellow");
|
DAG.setSubgraphColor(ResNode, "yellow");
|
||||||
DAG.setSubgraphColor(ResNode, "black");
|
DAG.setSubgraphColor(ResNode, "black");
|
||||||
|
#endif
|
||||||
ReplaceUses(Node, ResNode);
|
ReplaceUses(Node, ResNode);
|
||||||
}
|
}
|
||||||
// If after the replacement this node is not used any more,
|
// If after the replacement this node is not used any more,
|
||||||
@ -195,7 +199,6 @@ void SelectRoot(SelectionDAG &DAG) {
|
|||||||
CurDAG->RemoveDeadNode(Node, &ISQU);
|
CurDAG->RemoveDeadNode(Node, &ISQU);
|
||||||
UpdateQueue(ISQU);
|
UpdateQueue(ISQU);
|
||||||
}
|
}
|
||||||
//DAG.setSubgraphColor(Node, "black");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
delete[] ISelQueued;
|
delete[] ISelQueued;
|
||||||
|
Loading…
Reference in New Issue
Block a user