[all-commits] [llvm/llvm-project] 55227f: [ARM] Use BaseT::getMemoryOpCost for getMemoryOpCost

David Green via All-commits all-commits at lists.llvm.org
Mon Jul 6 02:59:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 55227f85d09c5d26b1484a5aaa9676068b21b6bd
      https://github.com/llvm/llvm-project/commit/55227f85d09c5d26b1484a5aaa9676068b21b6bd
  Author: David Green <david.green at arm.com>
  Date:   2020-07-06 (Mon, 06 Jul 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/cast_ldst.ll
    M llvm/test/Analysis/CostModel/ARM/load_store.ll
    M llvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll

  Log Message:
  -----------
  [ARM] Use BaseT::getMemoryOpCost for getMemoryOpCost

This alters getMemoryOpCost to use the Base TargetTransformInfo version
that includes some additional checks for whether extending loads are
legal. This will generally have the effect of making <2 x ..> and some
<4 x ..> loads/stores more expensive, which in turn should help favour
larger vector factors.

Notably it alters the cost of a <4 x half>, which with the current
codegen will be expensive if it is not extended.

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




More information about the All-commits mailing list