[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp 
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Tue Aug  9 13:40:13 PDT 2005
    
    
  
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.130 -> 1.131
---
Log message:
add cc nodes to the AllNodes list so they show up in Graphviz output
---
Diffs of the changes:  (+3 -1)
 SelectionDAG.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.130 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.131
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.130	Tue Aug  9 15:20:18 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Tue Aug  9 15:40:02 2005
@@ -379,8 +379,10 @@
   if ((unsigned)Cond >= CondCodeNodes.size())
     CondCodeNodes.resize(Cond+1);
   
-  if (CondCodeNodes[Cond] == 0)
+  if (CondCodeNodes[Cond] == 0) {
     CondCodeNodes[Cond] = new CondCodeSDNode(Cond);
+    AllNodes.push_back(CondCodeNodes[Cond]);
+  }
   return SDOperand(CondCodeNodes[Cond], 0);
 }
 
    
    
More information about the llvm-commits
mailing list