[PGO][PGSO][LV] Fix loop not vectorized issue under profile guided size opts.
authorHiroshi Yamauchi <yamauchi@google.com>
Tue, 11 Aug 2020 21:10:30 +0000 (14:10 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 19 Aug 2020 19:13:34 +0000 (12:13 -0700)
commitab401a8c8a9cf2b9e81eb6864aa647d96751ae84
tree0a544d1d2fc0c680d986c2f9ea216e3e606bdada
parentb40a3814b6fd0c784b52622eddac56d7c321d7cc
[PGO][PGSO][LV] Fix loop not vectorized issue under profile guided size opts.

D81345 appears to accidentally disables vectorization when explicitly
enabled. As PGSO isn't currently accessible from LoopAccessInfo, revert back to
the vectorization with versioning-for-unit-stride for PGSO.

Differential Revision: https://reviews.llvm.org/D85784
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/optsize.ll