summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-21 06:12:57 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-21 06:12:57 +0000
commit68ccbf648ea544faad29115cdda929920739e154 (patch)
tree9607a267ac6ee1d29933bb1ae2479c43298b590c /lib/Transforms
parent3659fd3552053fb649dc0d8383114ab008a69279 (diff)
downloadllvm-68ccbf648ea544faad29115cdda929920739e154.tar.gz
llvm-68ccbf648ea544faad29115cdda929920739e154.tar.bz2
llvm-68ccbf648ea544faad29115cdda929920739e154.tar.xz
Revert a part of r186420. Don't forbid multiple store chains that merge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 934ab3ec9b..c1ba57b55c 100644
--- a/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1700,10 +1700,8 @@ bool SLPVectorizer::vectorizeStores(ArrayRef<StoreInst *> Stores,
// Do a quadratic search on all of the given stores and find
// all of the pairs of stores that follow each other.
for (unsigned i = 0, e = Stores.size(); i < e; ++i) {
- if (Heads.count(Stores[i]))
- continue;
for (unsigned j = 0; j < e; ++j) {
- if (i == j || Tails.count(Stores[j]))
+ if (i == j)
continue;
if (R.isConsecutiveAccess(Stores[i], Stores[j])) {