mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-24 21:25:41 +00:00
add cc nodes to the AllNodes list so they show up in Graphviz output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
645f381d38
commit
079a27a0de
@ -379,8 +379,10 @@ SDOperand SelectionDAG::getCondCode(ISD::CondCode Cond) {
|
|||||||
if ((unsigned)Cond >= CondCodeNodes.size())
|
if ((unsigned)Cond >= CondCodeNodes.size())
|
||||||
CondCodeNodes.resize(Cond+1);
|
CondCodeNodes.resize(Cond+1);
|
||||||
|
|
||||||
if (CondCodeNodes[Cond] == 0)
|
if (CondCodeNodes[Cond] == 0) {
|
||||||
CondCodeNodes[Cond] = new CondCodeSDNode(Cond);
|
CondCodeNodes[Cond] = new CondCodeSDNode(Cond);
|
||||||
|
AllNodes.push_back(CondCodeNodes[Cond]);
|
||||||
|
}
|
||||||
return SDOperand(CondCodeNodes[Cond], 0);
|
return SDOperand(CondCodeNodes[Cond], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user