diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-19 13:48:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-05-19 13:48:08 +0000 |
commit | 29e068bac01be735cfb6fcacf16bbe1819cf37bc (patch) | |
tree | 53f11c3c593ec585502d5a8790f7283f98c494d7 /include/llvm/Transforms | |
parent | bb81d9d5fae81ce2a032d632c7268818ff97a864 (diff) | |
download | llvm-29e068bac01be735cfb6fcacf16bbe1819cf37bc.tar.gz llvm-29e068bac01be735cfb6fcacf16bbe1819cf37bc.tar.bz2 llvm-29e068bac01be735cfb6fcacf16bbe1819cf37bc.tar.xz |
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
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/Utils/VectorUtils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/VectorUtils.h b/include/llvm/Transforms/Utils/VectorUtils.h index 65b1bffb18..e1d6c56292 100644 --- a/include/llvm/Transforms/Utils/VectorUtils.h +++ b/include/llvm/Transforms/Utils/VectorUtils.h @@ -43,6 +43,7 @@ static inline bool isTriviallyVectorizable(Intrinsic::ID ID) { case Intrinsic::rint: case Intrinsic::nearbyint: case Intrinsic::round: + case Intrinsic::bswap: case Intrinsic::ctpop: case Intrinsic::pow: case Intrinsic::fma: |