[X86][AVX512] Fix MUL v8i64 costs on non-AVX512DQ targets

llvm-svn: 285329
This commit is contained in:
Simon Pilgrim 2016-10-27 18:32:06 +00:00
parent 1b0ebed572
commit d23219b9ee
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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