[PATCH] D132185: [TTI][AArch64] Update vector extract cost for Neoverse-N1.

Vasileios Porpodas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 15:52:17 PDT 2022


vporpo created this revision.
vporpo added a reviewer: dmgreen.
Herald added subscribers: pengfei, hiraditya, kristof.beyls.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

According to the ARM Neoverse-N1 Software Optimization Guide the
extract instructions have a latency of 2 and a throughput of 2.
TTI returns a cost of 3, which seems too high.

PEXTR in x86 has a latency of 3 and throughput of 1, according to
https://www.agner.org/optimize/instruction_tables.pdf for Skylake,
yet TTI returns 1.

This patch sets the vector extract cost to 1.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132185

Files:
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/test/Analysis/CostModel/AArch64/vector-extract.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132185.453823.patch
Type: text/x-patch
Size: 10541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220818/7f1d2970/attachment.bin>


More information about the llvm-commits mailing list