OSDN Git Service

LoopVectorizer: Don't assert on the absence of induction variables
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 9 May 2013 00:32:18 +0000 (00:32 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 9 May 2013 00:32:18 +0000 (00:32 +0000)
commitc121f5dc267e5d7048b8f27ddcfdc41f8c8e7073
treec439b513a604cfc10d2b61a8d9eb743caa68298c
parent96e70b2a0065488e8b72f5c6ace4de9e2e87035c
LoopVectorizer: Don't assert on the absence of induction variables

A computable loop exit count does not imply the presence of an induction
variable. Scalar evolution can return a value for an infinite loop.

Fixes PR15926.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181495 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/infiniteloop.ll [new file with mode: 0644]