[all-commits] [llvm/llvm-project] 854a45: [CostModel][X86] getArithmeticInstrCost - move GLM...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Sep 14 03:46:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 854a4595b6e14ea178152c44585a42bb6e1a779e
      https://github.com/llvm/llvm-project/commit/854a4595b6e14ea178152c44585a42bb6e1a779e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/fshl.ll
    M llvm/test/Analysis/CostModel/X86/fshr.ll
    M llvm/test/Analysis/CostModel/X86/mul.ll
    M llvm/test/Analysis/CostModel/X86/vshift-shl-cost-inseltpoison.ll
    M llvm/test/Analysis/CostModel/X86/vshift-shl-cost.ll
    M llvm/test/Analysis/CostModel/X86/vshift-shl-sizelatency.ll

  Log Message:
  -----------
  [CostModel][X86] getArithmeticInstrCost - move GLM/SLM custom costs AFTER constant shift -> multiply canonicalization

Corrects the shift by constant costs to better account for them being converted to multiples for lowering - which demonstrates that we should probably be trying harder NOT to convert these to multiplies for some CPUs (v4i32 in particular).




More information about the All-commits mailing list