The patch replace the overflow check in loop vectorization with the minimum loop...
authorWei Mi <wmi@google.com>
Tue, 25 Aug 2015 16:43:47 +0000 (16:43 +0000)
committerWei Mi <wmi@google.com>
Tue, 25 Aug 2015 16:43:47 +0000 (16:43 +0000)
commite922c3ebfc8faab7150219629a051a3b3dc034a4
tree0c47773051a1e4a685d42b4556d1fdd2679ae523
parentaf7c00f21360208a4f87a1bcd01f5f268037e1b7
The patch replace the overflow check in loop vectorization with the minimum loop iterations check.

The loop minimum iterations check below ensures the loop has enough trip count so the generated
vector loop will likely be executed, and it covers the overflow check.

Differential Revision: http://reviews.llvm.org/D12107.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/induction.ll
test/Transforms/LoopVectorize/miniters.ll [new file with mode: 0644]