summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2017-08-03 15:51:20 +0000
committerNirav Dave <niravd@google.com>2017-08-03 15:51:20 +0000
commit3fc1c2365ce3c8778d25c3eadfb84f27f9ec1496 (patch)
treec352e5b9de937da4a2b63ed1f1691fc43ae995a1 /llvm/lib/CodeGen/SelectionDAG
parentbfde70b097bdba45fa4b82db8f88fa71df51b1d3 (diff)
downloadbcm5719-llvm-3fc1c2365ce3c8778d25c3eadfb84f27f9ec1496.tar.gz
bcm5719-llvm-3fc1c2365ce3c8778d25c3eadfb84f27f9ec1496.zip
[DAG] Allow merging of stores of vector loads
Remove restriction disallowing merging of stores vector loads into larger store of larger vector load. Reviewers: RKSimon, efriedma, spatel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36158 llvm-svn: 309951
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 35a718e1fbf..937522ea2db 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -12719,12 +12719,6 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode *St) {
if (!IsConstantSrc && !IsLoadSrc && !IsExtractVecSrc)
return false;
- // Don't merge vectors into wider vectors if the source data comes from loads.
- // TODO: This restriction can be lifted by using logic similar to the
- // ExtractVecSrc case.
- if (MemVT.isVector() && IsLoadSrc)
- return false;
-
SmallVector<MemOpLink, 8> StoreNodes;
// Find potential store merge candidates by searching through chain sub-DAG
getStoreMergeCandidates(St, StoreNodes);
OpenPOWER on IntegriCloud