aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-21 19:10:41 +0000
committerDan Gohman <gohman@apple.com>2008-11-21 19:10:41 +0000
commit6e78031d9bec7d2b457dd4dd204126d35b3f9325 (patch)
tree937ad887faf2775474dcbb8dd5f111a60b74d7a5 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent82c2e4332a1578fce36412e997c4a563b3f66274 (diff)
downloadexternal_llvm-6e78031d9bec7d2b457dd4dd204126d35b3f9325.zip
external_llvm-6e78031d9bec7d2b457dd4dd204126d35b3f9325.tar.gz
external_llvm-6e78031d9bec7d2b457dd4dd204126d35b3f9325.tar.bz2
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d22a65d..02159de 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4647,8 +4647,8 @@ unsigned SelectionDAG::AssignTopologicalOrder() {
// it is at the end of the list.
allnodes_iterator SortedPos = allnodes_begin();
- // Visit all the nodes. Add nodes with no operands to the TopOrder result
- // array immediately. Annotate nodes that do have operands with their
+ // Visit all the nodes. Move nodes with no operands to the front of
+ // the list immediately. Annotate nodes that do have operands with their
// operand count. Before we do this, the Node Id fields of the nodes
// may contain arbitrary values. After, the Node Id fields for nodes
// before SortedPos will contain the topological sort index, and the
@@ -4704,7 +4704,7 @@ unsigned SelectionDAG::AssignTopologicalOrder() {
"Last node in topologic sort has unexpected id!");
assert(AllNodes.back().use_empty() &&
"Last node in topologic sort has users!");
- assert(DAGSize == allnodes_size() && "TopOrder result count mismatch!");
+ assert(DAGSize == allnodes_size() && "Node count mismatch!");
return DAGSize;
}