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
This commit is contained in:
Nadav Rotem 2013-07-21 06:12:57 +00:00
parent 3659fd3552
commit 68ccbf648e

View File

@ -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])) {