OSDN Git Service

[VectorUtils] add funnel-shifts to the list of vectorizable intrinsics
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Nov 2018 15:20:14 +0000 (15:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Nov 2018 15:20:14 +0000 (15:20 +0000)
commitaeeabb506aea5967b3ec0091c25928e49652d5fd
tree8e45745c32f06b99a8444c6fdcd1a25cde0320a1
parent7b8a79a288886e135421bf30093b49511d850611
[VectorUtils] add funnel-shifts to the list of vectorizable intrinsics

This just identifies the intrinsics as candidates for vectorization.
It does not mean we will attempt to vectorize under normal conditions
(the test file is forcing vectorization).

The cost model must be fixed to show that the transform is profitable
in general.

Allowing vectorization with these intrinsics is required to avoid
potential regressions from canonicalizing to the intrinsics from
generic IR:
https://bugs.llvm.org/show_bug.cgi?id=37417

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346661 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/VectorUtils.cpp
test/Transforms/LoopVectorize/intrinsic.ll