projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43d00c
)
clarify a comment, thanks Duncan.
author
Chris Lattner
<sabre@nondot.org>
Thu, 24 Jan 2008 17:10:01 +0000
(17:10 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 24 Jan 2008 17:10:01 +0000
(17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46313
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 6ce29fb89fbafcb416a0cc2ad1996040e1b47394..fc393e9ef237d1cfdc9fdfecdb55b1e67afd363c 100644
(file)
--- 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);