[all-commits] [llvm/llvm-project] 2a1ef8: [CostModel][X86] getCastInstrCost - attempt to mat...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jul 1 04:06:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a1ef8784ad9a78583a2f1f3bba536ee57b6b13b
      https://github.com/llvm/llvm-project/commit/2a1ef8784ad9a78583a2f1f3bba536ee57b6b13b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/cast.ll
    M llvm/test/Analysis/CostModel/X86/sitofp.ll

  Log Message:
  -----------
  [CostModel][X86] getCastInstrCost - attempt to match custom cast/conversion before legalized types.

Move the (SSE-only) generic, legalized type conversion matching after the specific,custom conversion cases, allowing us to properly provide cost overrides.

The next step will be to clean up some of the weird existing costs and then to enable AVX+ legalized costs, which will let us strip out a lot of the cost tables entries.




More information about the All-commits mailing list