[llvm] r186786 - Revert a part of r186420. Don't forbid multiple store chains that merge.
Nadav Rotem
nrotem at apple.com
Sat Jul 20 23:12:58 PDT 2013
Author: nadav
Date: Sun Jul 21 01:12:57 2013
New Revision: 186786
URL: http://llvm.org/viewvc/llvm-project?rev=186786&view=rev
Log:
Revert a part of r186420. Don't forbid multiple store chains that merge.
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=186786&r1=186785&r2=186786&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Sun Jul 21 01:12:57 2013
@@ -1700,10 +1700,8 @@ bool SLPVectorizer::vectorizeStores(Arra
// 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])) {
More information about the llvm-commits
mailing list