summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-06-20 19:35:43 +0000
committerPete Cooper <peter_cooper@apple.com>2012-06-20 19:35:43 +0000
commitfe5b84b404f381f613b9c4e1738ec7747d91733f (patch)
tree5b445e60df25e4f6b210afe0e198ee177c5ff886 /llvm/lib
parentcc6a908c399b5edef4ecae8ece92b3abb59db404 (diff)
downloadbcm5719-llvm-fe5b84b404f381f613b9c4e1738ec7747d91733f.tar.gz
bcm5719-llvm-fe5b84b404f381f613b9c4e1738ec7747d91733f.zip
Add users of a MERGE_VALUE node to the worklist to process again when the node is removed. Sorry, no test case. Foudn it by inspection of the code
llvm-svn: 158839
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 4b56e41b72c..95dd2e6219b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1322,6 +1322,9 @@ SDValue DAGCombiner::visitMERGE_VALUES(SDNode *N) {
// Replacing results may cause a different MERGE_VALUES to suddenly
// be CSE'd with N, and carry its uses with it. Iterate until no
// uses remain, to ensure that the node can be safely deleted.
+ // First add the users of this node to the work list so that they
+ // can be tried again once they have new operands.
+ AddUsersToWorkList(N);
do {
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
DAG.ReplaceAllUsesOfValueWith(SDValue(N, i), N->getOperand(i));
OpenPOWER on IntegriCloud