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)
commitc11107cb1e1c102af335f8c396bc6c327dc5094b
tree215e0ea377155cd1692eb6b9e701bf57859c4857
parenta2074404deca1b030664cb0a4782521f06edaab2
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.

llvm-svn: 211460
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/induction.ll