diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-24 17:10:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-24 17:10:01 +0000 |
commit | 23e202dee012011a25b3b309d3c05d1915767773 (patch) | |
tree | ff6feb420c2fa899554f2239de15b132ce539a5d | |
parent | d43d00cf3ae44b94162552b19e4cf2491bc0533e (diff) |
clarify a comment, thanks Duncan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46313 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 6ce29fb89f..fc393e9ef2 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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); |