[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h
Evan Cheng
evan.cheng at apple.com
Wed Aug 2 14:59:04 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.106 -> 1.107
---
Log message:
AssignTopologicalOrder now returns the vector of SDNode* by reference to
avoid the expensive operation of copying a vector.
It also returns a maximum id by value.
---
Diffs of the changes: (+3 -3)
SelectionDAG.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.106 llvm/include/llvm/CodeGen/SelectionDAG.h:1.107
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.106 Tue Aug 1 03:19:46 2006
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Wed Aug 2 16:58:44 2006
@@ -427,9 +427,9 @@
unsigned AssignNodeIds();
/// AssignTopologicalOrder - Assign a unique node id for each node in the DAG
- /// based on their topological order. It returns a vector of the SDNodes* in
- /// assigned order.
- std::vector<SDNode*> AssignTopologicalOrder();
+ /// based on their topological order. It returns the maximum id and a vector
+ /// of the SDNodes* in assigned order by reference.
+ unsigned AssignTopologicalOrder(std::vector<SDNode*> &TopOrder);
void dump() const;
More information about the llvm-commits
mailing list