mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[X86][AVX512] Fix MUL v8i64 costs on non-AVX512DQ targets
llvm-svn: 285329
This commit is contained in:
parent
6b6d270c74
commit
68d206a9d2
@ -522,6 +522,7 @@ int X86TTIImpl::getArithmeticInstrCost(
|
||||
// multiplies(3), shifts(4) and adds(2).
|
||||
{ ISD::MUL, MVT::v2i64, 9 },
|
||||
{ ISD::MUL, MVT::v4i64, 9 },
|
||||
{ ISD::MUL, MVT::v8i64, 9 }
|
||||
};
|
||||
if (const auto *Entry = CostTableLookup(CustomLowered, ISD, LT.second))
|
||||
return LT.first * Entry->Cost;
|
||||
|
@ -446,8 +446,8 @@ define i32 @mul(i32 %arg) {
|
||||
; SSE42: cost of 36 {{.*}} %C = mul
|
||||
; AVX: cost of 36 {{.*}} %C = mul
|
||||
; AVX2: cost of 18 {{.*}} %C = mul
|
||||
; AVX512F: cost of 2 {{.*}} %C = mul
|
||||
; AVX512BW: cost of 2 {{.*}} %C = mul
|
||||
; AVX512F: cost of 9 {{.*}} %C = mul
|
||||
; AVX512BW: cost of 9 {{.*}} %C = mul
|
||||
; AVX512DQ: cost of 1 {{.*}} %C = mul
|
||||
%C = mul <8 x i64> undef, undef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user