[all-commits] [llvm/llvm-project] 926681: [CostModel] Add basic implementation of getGatherS...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Nov 26 04:03:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 926681b6be701176f4f806e28932e8013fe4dec1
      https://github.com/llvm/llvm-project/commit/926681b6be701176f4f806e28932e8013fe4dec1
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-11-26 (Thu, 26 Nov 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/AArch64/mem-op-cost-model.ll
    M llvm/test/Transforms/SLPVectorizer/AArch64/gather-cost.ll

  Log Message:
  -----------
  [CostModel] Add basic implementation of getGatherScatterOpCost.

Add a basic implementation of getGatherScatterOpCost to BasicTTIImpl.

The implementation estimates the cost of scalarizing the loads/stores,
the cost of packing/extracting the individual lanes and the cost of
only selecting enabled lanes.

This more accurately reflects the current cost on targets like AArch64.

Reviewed By: dmgreen

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




More information about the All-commits mailing list