[LV] Refactor all runtime check emissions into helper functions.
authorJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:22 +0000 (10:15 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:22 +0000 (10:15 +0000)
commit2b7433d981601de9dd3f044b3b6b2c430ff4f7cf
tree0070c50fc5442293ea04b39eadb935e05c09755a
parentf6d9948d5ac1b1a78d2f4327af9950a13cd3e397
[LV] Refactor all runtime check emissions into helper functions.

This reduces the complexity of createEmptyBlock() and will open the door to further refactoring.

The test change is simply because we're now constant folding a trivial test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246634 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/induction.ll