clarify a comment, thanks Duncan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-01-24 17:10:01 +00:00
parent d43d00cf3a
commit 23e202dee0

View File

@ -607,8 +607,9 @@ void DAGCombiner::Run(bool RunningAfterLegalize) {
AddToWorkList(RV.Val); AddToWorkList(RV.Val);
AddUsersToWorkList(RV.Val); AddUsersToWorkList(RV.Val);
// Add any uses of the old node to the worklist if they have a single // Add any uses of the old node to the worklist in case this node is the
// use. They may be dead after this node is deleted. // last one that uses them. They may become dead after this node is
// deleted.
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
AddToWorkList(N->getOperand(i).Val); AddToWorkList(N->getOperand(i).Val);