diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-11-12 15:20:14 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-11-12 15:20:14 +0000 |
| commit | 1456fd76144c925958614547ef7cd7569ad73745 (patch) | |
| tree | d707d3b8bb32e2416a9459591e4f3562bd04550d /llvm/lib/Analysis/VectorUtils.cpp | |
| parent | 0f4f4806b376827191ecd794c5795a01925dfcac (diff) | |
| download | bcm5719-llvm-1456fd76144c925958614547ef7cd7569ad73745.tar.gz bcm5719-llvm-1456fd76144c925958614547ef7cd7569ad73745.zip | |
[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
llvm-svn: 346661
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
| -rw-r--r-- | llvm/lib/Analysis/VectorUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp index 2fab03c988b..2cf4baf7af6 100644 --- a/llvm/lib/Analysis/VectorUtils.cpp +++ b/llvm/lib/Analysis/VectorUtils.cpp @@ -47,6 +47,8 @@ bool llvm::isTriviallyVectorizable(Intrinsic::ID ID) { case Intrinsic::ctpop: case Intrinsic::ctlz: case Intrinsic::cttz: + case Intrinsic::fshl: + case Intrinsic::fshr: case Intrinsic::sqrt: // Begin floating-point. case Intrinsic::sin: case Intrinsic::cos: |

