[PATCH] D142359: [TTI][AArch64] Cost model vector INS instructions

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 06:48:31 PST 2023


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: dmgreen, david-arm.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
SjoerdMeijer requested review of this revision.
Herald added a project: LLVM.

This makes the "ASIMD insert, element to element" instruction, INS, cheaper for the N1, N2, V1, V2 cores.  The software optimisation guides specify a latency of 2 for this instructions, which makes them pretty cheap.  I see a 2.5% perf uplift for x264 with this on the V1.


https://reviews.llvm.org/D142359

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142359.491351.patch
Type: text/x-patch
Size: 9555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/8af45e2c/attachment.bin>


More information about the llvm-commits mailing list