[all-commits] [llvm/llvm-project] 6bbad7: [CostModel] Modify BasicTTI getCastInstrCost

Sam Parker via All-commits all-commits at lists.llvm.org
Tue May 12 23:26:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6bbad7285c4b8a38fc9a3a0bd68eb3096f9d27bc
      https://github.com/llvm/llvm-project/commit/6bbad7285c4b8a38fc9a3a0bd68eb3096f9d27bc
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/AArch64/cast.ll
    M llvm/test/Analysis/CostModel/ARM/cast.ll
    M llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll
    M llvm/test/Transforms/SLPVectorizer/X86/load-merge.ll

  Log Message:
  -----------
  [CostModel] Modify BasicTTI getCastInstrCost

Fix the assumption that all bitcasts of the same type sizes are free.
We now only assume that bitcasts between ints and ptrs of the same
size are free. This allows TTImpl to just call the concrete
implementation of getCastInstrCost.

Differential Revision: https://reviews.llvm.org/D78918




More information about the All-commits mailing list