LoopVectorizer: Fix a dominance issue
authorArnold Schwaighofer <aschwaighofer@apple.com>
Sun, 22 Jun 2014 03:38:59 +0000 (03:38 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Sun, 22 Jun 2014 03:38:59 +0000 (03:38 +0000)
commit78f173a22d94ec3fbcbd9fe0adf1f2093fb9a95e
treefbcd0dc69b796a0c11a3aaa6f98720ae72299579
parentc815039ca2a5b18d3cbc5b35767287f7ec67e7a7
LoopVectorizer: Fix a dominance issue

The induction variables start value needs to be defined before we branch
(overflow check) to the scalar preheader where we used it.

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