Revert a part of r186420. Don't forbid multiple store chains that merge.
authorNadav Rotem <nrotem@apple.com>
Sun, 21 Jul 2013 06:12:57 +0000 (06:12 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 21 Jul 2013 06:12:57 +0000 (06:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186786 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 934ab3ec9b13361e8371949d359c2b9bc05c6d5b..c1ba57b55c9d9de37a97db2bf709766c1f30257b 100644 (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])) {