OSDN Git Service

LoopVectorize: Handle single edge PHIs
authorArnold Schwaighofer <aschwaighofer@apple.com>
Sat, 18 May 2013 18:38:34 +0000 (18:38 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Sat, 18 May 2013 18:38:34 +0000 (18:38 +0000)
commit688b5103eb4b70410d1ea54bcd8df4ef2f2ff8e8
tree47e826e7f6429f59bfe43a2a4b6d6ee0e04ae7ff
parentedc399acebc94cfa26b47a6d8d836e2e1a009420
LoopVectorize: Handle single edge PHIs

We might encouter single edge PHIs - handle them with an identity select.

Fixes PR15990.

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