Correctly vectorize powi.
authorHal Finkel <hfinkel@anl.gov>
Sat, 31 Mar 2012 03:38:40 +0000 (03:38 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 31 Mar 2012 03:38:40 +0000 (03:38 +0000)
commit6173ed95daf2f209fe3883faee45967e4800ae75
tree323330792dd78ca9fb9dd6b3ecf38e3184b46e5b
parent9f2a9d741f58f0a2a591ec16e5e038c905142dbc
Correctly vectorize powi.

The powi intrinsic requires special handling because it always takes a single
integer power regardless of the result type. As a result, we can vectorize
only if the powers are equal. Fixes PR12364.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153797 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/BBVectorize.cpp
test/Transforms/BBVectorize/simple-int.ll