mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fixed shuffle-reverse cost on AVX-512.
(This changed was approved in https://reviews.llvm.org/D28118, but Simon asked to submit it separately). llvm-svn: 290812
This commit is contained in:
parent
ac6dc0e1f0
commit
49038bfad5
@ -614,6 +614,7 @@ int X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
|
||||
|
||||
static const CostTblEntry AVX512BWShuffleTbl[] = {
|
||||
{ ISD::VECTOR_SHUFFLE, MVT::v32i16, 1 }, // vpermw
|
||||
{ ISD::VECTOR_SHUFFLE, MVT::v16i16, 1 }, // vpermw
|
||||
{ ISD::VECTOR_SHUFFLE, MVT::v64i8, 6 } // vextracti64x4 + 2*vperm2i128
|
||||
// + 2*pshufb + vinserti64x4
|
||||
};
|
||||
|
@ -122,7 +122,8 @@ define void @test_vXi16(<8 x i16> %src128, <16 x i16> %src256, <32 x i16> %src51
|
||||
; SSE42: cost of 2 {{.*}} %V256 = shufflevector
|
||||
; AVX1: cost of 4 {{.*}} %V256 = shufflevector
|
||||
; AVX2: cost of 2 {{.*}} %V256 = shufflevector
|
||||
; AVX512: cost of 2 {{.*}} %V256 = shufflevector
|
||||
; AVX512F: cost of 2 {{.*}} %V256 = shufflevector
|
||||
; AVX512BW: cost of 1 {{.*}} %V256 = shufflevector
|
||||
%V256 = shufflevector <16 x i16> %src256, <16 x i16> undef, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
|
||||
|
||||
; SSE2: cost of 12 {{.*}} %V512 = shufflevector
|
||||
|
Loading…
Reference in New Issue
Block a user