[CostModel][X86] getArithmeticInstrCost - use MUL/DIV/REM expansions for all cost...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 18 Aug 2022 13:18:54 +0000 (14:18 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 18 Aug 2022 13:18:54 +0000 (14:18 +0100)
commit55b1a147f263630535ee271dbba0c1b6a863456a
treed2947ef8e5e99e736452b50180ea1b78402677d9
parent8d26f5cf8672ee2ce2ec4fa8eaae5ed7fedfd998
[CostModel][X86] getArithmeticInstrCost - use MUL/DIV/REM expansions for all cost kinds

The costs tables still assume throughput, but the general expansion patterns should be good for any cost kind
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/arith-costkinds.ll
llvm/test/Analysis/CostModel/X86/div-costkinds.ll
llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll
llvm/test/Analysis/CostModel/X86/rem-costkinds.ll