[CostModel][X86] getArithmeticInstrCost - use cost kind specific look up tables
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 26 Aug 2022 13:13:24 +0000 (14:13 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 26 Aug 2022 13:28:35 +0000 (14:28 +0100)
commit9f94240fe1bde28e3d275fade910ddde87134f44
tree9eff71ea5d0dea14aabd734d1e1d257113438ed0
parent59656c0492224a2da590b913959630107e0a31f4
[CostModel][X86] getArithmeticInstrCost - use cost kind specific look up tables

Building on D132216, use CostKindTblEntry cost tables to simplify the transition to supporting cost kinds other than recip-throughput

Adding full cost kinds support is going to take a while, but by converting to CostKindTblEntry first it will make it easier to support the costs on a per-ISD basis.
llvm/lib/Target/X86/X86TargetTransformInfo.cpp