[PATCH] D19501: Add LoadStoreVectorizer pass
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 09:40:55 PDT 2016
asbirlea added inline comments.
Comment at: lib/Transforms/Vectorize/LoadStoreVectorizer.cpp:509
@@ +508,3 @@
+ int ConsecutiveChain;
+ // Do a quadratic search on all of the given stores and find all of the pairs
I'm confused why that is the case. Each i iteration sets ConsecutiveChain[i]=-1 and all read/write accesses in the j loop are on ConsecutiveChain[i]. Initializing all ConsecutiveChain to -1 before the i loop should have the equivalent behavior. Could you clarify what I'm missing?
More information about the llvm-commits