OSDN Git Service

Merging r197449:
authorBill Wendling <isanbard@gmail.com>
Tue, 17 Dec 2013 01:28:35 +0000 (01:28 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 17 Dec 2013 01:28:35 +0000 (01:28 +0000)
commite39b15195a3607ee708be9d105b5fc591b4665dd
treea67d8c04ed0a59e045de4d41e4dd1dcb69719c90
parent98872fd0fc5c254c644140d65efa4c455b60db87
Merging r197449:
------------------------------------------------------------------------
r197449 | arnolds | 2013-12-16 17:11:01 -0800 (Mon, 16 Dec 2013) | 7 lines

LoopVectorizer: Don't if-convert constant expressions that can trap

A phi node operand or an instruction operand could be a constant expression that
can trap (division). Check that we don't vectorize such cases.

PR16729
radar://15653590
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@197453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/if-conversion.ll