[LV] Pull creation of trip counts into a helper function.
authorJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:16 +0000 (10:15 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:16 +0000 (10:15 +0000)
commitf6d9948d5ac1b1a78d2f4327af9950a13cd3e397
treea6546d30c5283027f54a1e9b6f07291af8ceb349
parentcf062a0a18628f54adf27c4ce30e18d6de97504d
[LV] Pull creation of trip counts into a helper function.

... and do a tad of tidyup while we're at it. Because StartIdx must now be zero, there's no difference between Count and EndIdx.

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