[all-commits] [llvm/llvm-project] acf0bb: [ARM][CostModel] Select instruction costs.

Sam Parker via All-commits all-commits at lists.llvm.org
Fri Aug 21 00:50:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: acf0bb41e45c50c0f4e7310038d85101d4c1ef37
      https://github.com/llvm/llvm-project/commit/acf0bb41e45c50c0f4e7310038d85101d4c1ef37
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/immediates.ll
    M llvm/test/Analysis/CostModel/ARM/select.ll

  Log Message:
  -----------
  [ARM][CostModel] Select instruction costs.

Modify the ARM getCmpSelInstrCost implementation for the code size
costs of selects. Now consider the legalization cost and increase
the cost of i1 because those values wouldn't live in a general purpose
register. We also make selects +1 more expensive to account for the IT
instruction.

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




More information about the All-commits mailing list