aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit3affd9e8f366f241adbbc57ef53489ff2052db4f (patch)
tree4d659a6bd6ace3e84f5138bb59b33b70b2b64c0c /lib/CodeGen
parent7824152557cfe3a366963f504b2b956f853ebc3a (diff)
downloadexternal_llvm-3affd9e8f366f241adbbc57ef53489ff2052db4f.zip
external_llvm-3affd9e8f366f241adbbc57ef53489ff2052db4f.tar.gz
external_llvm-3affd9e8f366f241adbbc57ef53489ff2052db4f.tar.bz2
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 4b56e41..95dd2e6 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/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));