[LV] Factor the creation of the loop induction variable out of createEmptyLoop()
authorJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:09 +0000 (10:15 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 2 Sep 2015 10:15:09 +0000 (10:15 +0000)
commitcf062a0a18628f54adf27c4ce30e18d6de97504d
treeed575416a9919322ccea636081432a9e2c73a026
parentfe89784bf1d661516f47c9ff0f1d0eaa94e35966
[LV] Factor the creation of the loop induction variable out of createEmptyLoop()

It makes things easier to understand if this is in a helper method. This is part of my ongoing spaghetti-removal operation on createEmptyLoop.

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