[PATCH] D151189: [AArch64] Increase the cost of i1 inserts / extracts

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 01:08:15 PDT 2023


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, jaykang10, t.p.northover.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

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.
https://godbolt.org/z/3c5z4G7Mh


https://reviews.llvm.org/D151189

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151189.524595.patch
Type: text/x-patch
Size: 44439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230523/e74e97e5/attachment.bin>


More information about the llvm-commits mailing list