[llvm-commits] [llvm] r46313 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Chris Lattner sabre at nondot.org
Thu Jan 24 09:10:05 PST 2008


Author: lattner
Date: Thu Jan 24 11:10:01 2008
New Revision: 46313

URL: http://llvm.org/viewvc/llvm-project?rev=46313&view=rev
Log:
clarify a comment, thanks Duncan.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=46313&r1=46312&r2=46313&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jan 24 11:10:01 2008
@@ -607,8 +607,9 @@
         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);
           





More information about the llvm-commits mailing list