Flip on vectorization of bswap intrinsics.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 19 May 2014 13:48:08 +0000 (13:48 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 19 May 2014 13:48:08 +0000 (13:48 +0000)
commit29e068bac01be735cfb6fcacf16bbe1819cf37bc
tree53f11c3c593ec585502d5a8790f7283f98c494d7
parentbb81d9d5fae81ce2a032d632c7268818ff97a864
Flip on vectorization of bswap intrinsics.

The cost model conservatively assumes that it will always get scalarized and
that's about as good as we can get with the generic TTI; reasoning whether a
shuffle with an efficient lowering is available is hard. We can override that
conservative estimate for some targets in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209125 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/VectorUtils.h
test/Transforms/SLPVectorizer/X86/intrinsic.ll