[LV] Don't vectorize when we have a small static bound on trip count
authorMichael Kuperstein <mkuper@google.com>
Tue, 13 Dec 2016 20:38:18 +0000 (20:38 +0000)
committerMichael Kuperstein <mkuper@google.com>
Tue, 13 Dec 2016 20:38:18 +0000 (20:38 +0000)
commit3d23d4a2343a59cfa6977d8dc12c626b7b97e20e
tree724bb1fee4031a61a798768e1aac5c2bf9f2ca66
parentb56a103462c8b9a3bac12859f9285b6fa3f5b7bb
[LV] Don't vectorize when we have a small static bound on trip count

We currently check if the exact trip count is known and is smaller than the
"tiny loop" bound. We should be checking the maximum bound on the trip count
instead.

Differential Revision: https://reviews.llvm.org/D27690

llvm-svn: 289583
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/small-loop.ll