[PATCH] D132784: [AArch64][TTI] Add cost table entry for trunc over vector of integers.

Mingming Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 00:47:44 PDT 2022


mingmingl updated this revision to Diff 456557.
mingmingl retitled this revision from "[AArch64][TTI] Set the cost of XTN to 1 for 2xi64 (to 2xi32) and 8xi16 (to8xi8)." to "[AArch64][TTI] Add cost table entry for trunc over vector of integers.".
mingmingl edited the summary of this revision.
mingmingl added a comment.

Added more table entries for trunc of vector integers. In this way, costs are specified explicitly rather than depending on the 'split half' approach in BaseTTI.

Updated `arith-overflow.ll` as a result of more table entries.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132784/new/

https://reviews.llvm.org/D132784

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/arith-overflow.ll
  llvm/test/Analysis/CostModel/AArch64/cast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132784.456557.patch
Type: text/x-patch
Size: 18318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220830/d81e9268/attachment.bin>


More information about the llvm-commits mailing list