[PATCH] D103952: [CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 06:53:08 PDT 2021


RosieSumpter updated this revision to Diff 351158.
RosieSumpter added a comment.

- Corrected the scalar costs
- Adjusted the table
- Return LT.first * Entry->Cost or LT.first*Entry->Cost + 1 depending on whether vector integer type is promoted


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

https://reviews.llvm.org/D103952

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/ctpop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103952.351158.patch
Type: text/x-patch
Size: 10278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/51fa9bdc/attachment.bin>


More information about the llvm-commits mailing list