[all-commits] [llvm/llvm-project] 9c29b4: [CostModel][X86] Convert AVX1/SSE41 SREM/SDIV by c...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Aug 26 08:16:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c29b4a0acf3bfa1e4ce935b6220b30cb7419275
      https://github.com/llvm/llvm-project/commit/9c29b4a0acf3bfa1e4ce935b6220b30cb7419275
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [CostModel][X86] Convert AVX1/SSE41 SREM/SDIV by constants to cost tables

When adding cost kind support it will be easier to maintain these if we're not calculating on the fly


  Commit: f3590b6440a9bf32bc36417195603dc919f0b686
      https://github.com/llvm/llvm-project/commit/f3590b6440a9bf32bc36417195603dc919f0b686
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [CostModel][X86] getArithmeticInstrCost - move SLM reduceVMULWidth cost handling into the generic MUL handling

This is still SLM specific atm, but converting this to more closely match the codegen from reduceVMULWidth should be straightforward


  Commit: fef3eeef480b05457c4045846e255d8167938b84
      https://github.com/llvm/llvm-project/commit/fef3eeef480b05457c4045846e255d8167938b84
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [CostModel][X86] Convert AVX2 SRA by uniform constant to cost table

When adding cost kind support it will be easier to maintain these if we're not calculating on the fly


Compare: https://github.com/llvm/llvm-project/compare/3bb228729fc1...fef3eeef480b


More information about the All-commits mailing list