From: Simon Pilgrim Date: Sun, 4 Sep 2022 13:06:26 +0000 (+0100) Subject: [CostModel][X86] Remove redundant AVX512 v64i8 shift costs X-Git-Tag: upstream/17.0.6~34457 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59dbd6a0cfbcb48001a0cac8493f94783333a9a4;p=platform%2Fupstream%2Fllvm.git [CostModel][X86] Remove redundant AVX512 v64i8 shift costs These are handled earlier (and more accurately) in AVX512BWShiftCostTable --- diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp index 5126796..641e461 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp @@ -641,10 +641,6 @@ InstructionCost X86TTIImpl::getArithmeticInstrCost( return LT.first * KindCost.value(); static const CostKindTblEntry AVX512BWCostTable[] = { - { ISD::SHL, MVT::v64i8, { 11 } }, // vpblendvb sequence. - { ISD::SRL, MVT::v64i8, { 11 } }, // vpblendvb sequence. - { ISD::SRA, MVT::v64i8, { 24 } }, // vpblendvb sequence. - { ISD::ADD, MVT::v64i8, { 1, 1, 1, 1 } }, // paddb { ISD::ADD, MVT::v32i16, { 1, 1, 1, 1 } }, // paddw