[all-commits] [llvm/llvm-project] eb764a: [AArch64] Increase the cost of i1 inserts / extracts

David Green via All-commits all-commits at lists.llvm.org
Thu Jun 1 02:55:06 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb764a7f38df48a818cb10777f59fdae13a0c661
  Author: David Green <david.green at arm.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/AArch64/cast.ll
    M llvm/test/Analysis/CostModel/AArch64/fptoi_sat.ll
    M llvm/test/Analysis/CostModel/AArch64/insert-extract.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-insert-extract.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll

  Log Message:
  [AArch64] Increase the cost of i1 inserts / extracts

i1 inserts will need an extra cset, and i1 extracts need a cmp (or tst) in
order to be used. This increase the cost of them a little to account for those
extra instructions.

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

More information about the All-commits mailing list