]> granicus.if.org Git - llvm/commit
[AVX-512] Add unmasked version of shift by immediate and shift by single element...
authorCraig Topper <craig.topper@gmail.com>
Sat, 12 Nov 2016 05:28:24 +0000 (05:28 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 12 Nov 2016 05:28:24 +0000 (05:28 +0000)
commit7fc9a56e3b1e95a11f0402fd12048afe4767a4c1
tree2ef6c0b2437e89a18f824b43e8bb8938faf584d5
parent328301f18df764d16585b5f43159c815c34be6d0
[AVX-512] Add unmasked version of shift by immediate and shift by single element in XMM.

Summary:
This is the first step towards being able to add the avx512 shift by immediate intrinsics to InstCombineCalls where we aleady support the sse2 and avx2 intrinsics. We need to the unmasked versions so we can avoid having to teach InstCombineCalls that it would need to insert selects sometimes. Instead we'll just add the selects around the new instrinsics in the frontend.

This change should also enable the shift by i32 intrinsics to take a non-constant shift value just like the avx2 and sse intrinsics. This will enable us to fix PR30691 once we update clang.

Next I'll switch clang to use the new builtins. Then we'll come back to the backend and remove/autoupgrade the old intrinsics. Then I'll work on the same series for variable shifts.

Reviewers: RKSimon, zvi, delena

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D26333

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286711 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsX86.td
lib/Target/X86/X86IntrinsicsInfo.h
test/CodeGen/X86/avx512-intrinsics.ll
test/CodeGen/X86/avx512bw-intrinsics.ll
test/CodeGen/X86/avx512vl-intrinsics.ll