[all-commits] [llvm/llvm-project] 677c15: [ARM] Increase MVE gather/scatter cost by MVECostF...

David Green via All-commits all-commits at lists.llvm.org
Wed Aug 26 05:04:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 677c1590c03474c8238fbc21b9c0dae9b5e5f4d2
      https://github.com/llvm/llvm-project/commit/677c1590c03474c8238fbc21b9c0dae9b5e5f4d2
  Author: David Green <david.green at arm.com>
  Date:   2020-08-26 (Wed, 26 Aug 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/mve-gather-scatter-cost.ll
    M llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll

  Log Message:
  -----------
  [ARM] Increase MVE gather/scatter cost by MVECostFactor.

MVE Gather scatter codegeneration is looking a lot better than it used
to, but still has some issues. The instructions we currently model as 1
cycle per element, which is a bit low for some cases. Increasing the
cost by the MVECostFactor brings them in-line with our other instruction
costs. This will have the effect of only generating then when the extra
benefit is more likely to overcome some of the issues. Notably in
running out of registers and vectorizing loops that could otherwise be
SLP vectorized.

In the short-term whilst we look at other ways of dealing with those
more directly, we can increase the costs of gathers to make them more
likely to be beneficial when created.

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




More information about the All-commits mailing list