[CostModel][X86] Add i64 mul cost for avx512 as 1cy
authorHaohai Wen <haohai.wen@intel.com>
Tue, 7 Dec 2021 02:15:38 +0000 (10:15 +0800)
committerHaohai Wen <haohai.wen@intel.com>
Wed, 8 Dec 2021 03:29:08 +0000 (11:29 +0800)
commitd2c093e79d146f837ce0117f9b331e9e4508d2cf
tree419fc9d5acbc80c5cca5c709a9f1baace7c6afdb
parentae73f3fdd6340a7cc20ba3ad878b5a5b6502968f
[CostModel][X86] Add i64 mul cost for avx512 as 1cy

i64 mul cost is 1cy for all cpu that support avx512. Currently
all X86 cpu uses i64 mul cost in X64 cost table which is not
true for cpu that support avx512 (skx, icx).

Reviewed By: pengfei, RKSimon

Differential Revision: https://reviews.llvm.org/D115016
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/arith-fix.ll
llvm/test/Analysis/CostModel/X86/arith-overflow.ll
llvm/test/Analysis/CostModel/X86/arith.ll
llvm/test/Analysis/CostModel/X86/mul.ll
llvm/test/Analysis/CostModel/X86/rem.ll