summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-11 14:16:02 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-11 14:16:02 +0000
commit25d9af0cb5765b798066c1a5b5f18d1b32b541b3 (patch)
tree75d0bab2371eb7f2bfc95c818033133b1505041f
parent6f56d3eee85c60f19e937fa72238b5ea2dfe79bd (diff)
downloadbcm5719-llvm-25d9af0cb5765b798066c1a5b5f18d1b32b541b3.tar.gz
bcm5719-llvm-25d9af0cb5765b798066c1a5b5f18d1b32b541b3.zip
[DAGCombiner] Add combined indexed load to the work list
This commit is the first part of https://reviews.llvm.org/D40348. In order to allow target combines to be performed on newly combined indexed loads, add them back to the worklist. The remainder of the above patch will be committed in subsequent revisions and will use this. Test cases will be included with those follow-up commits. llvm-svn: 320365
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 60a86c0d203..d8ac4a52946 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -11380,6 +11380,7 @@ bool DAGCombiner::CombineToPreIndexedLoadStore(SDNode *N) {
// Replace the uses of Ptr with uses of the updated base value.
DAG.ReplaceAllUsesOfValueWith(Ptr, Result.getValue(isLoad ? 1 : 0));
deleteAndRecombine(Ptr.getNode());
+ AddToWorklist(Result.getNode());
return true;
}
OpenPOWER on IntegriCloud