summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-24 17:10:01 +0000
committerChris Lattner <sabre@nondot.org>2008-01-24 17:10:01 +0000
commit34ed27c46d298ce5e862b639ac20d056ad5c71f8 (patch)
tree3b0027e3ee6bc3ca0afdf579b31f5b332a2dd2b8 /llvm/lib/CodeGen
parentc9052ff8fd5602e71997a80fe3b82f9440cd5574 (diff)
downloadbcm5719-llvm-34ed27c46d298ce5e862b639ac20d056ad5c71f8.tar.gz
bcm5719-llvm-34ed27c46d298ce5e862b639ac20d056ad5c71f8.zip
clarify a comment, thanks Duncan.
llvm-svn: 46313
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 6ce29fb89fb..fc393e9ef23 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -607,8 +607,9 @@ void DAGCombiner::Run(bool RunningAfterLegalize) {
AddToWorkList(RV.Val);
AddUsersToWorkList(RV.Val);
- // Add any uses of the old node to the worklist if they have a single
- // use. They may be dead after this node is deleted.
+ // Add any uses of the old node to the worklist in case this node is the
+ // last one that uses them. They may become dead after this node is
+ // deleted.
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
AddToWorkList(N->getOperand(i).Val);
OpenPOWER on IntegriCloud