[PATCH] D145370: [AArch64] Fix N2 SchedModel for arithmetic ops with LSL ≤ 4

Ricardo Jesus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 04:57:57 PST 2023


rjj created this revision.
rjj added reviewers: c-rhodes, dmgreen, SjoerdMeijer.
Herald added subscribers: gbedwell, hiraditya, kristof.beyls.
Herald added a reviewer: andreadb.
Herald added a project: All.
rjj requested review of this revision.
Herald added a project: LLVM.

According to the N2 Software Optimization Guide, arithmetic ops with LSL ≤ 4 have a latency of 1 and use pipeline group I. However, most arithmetic ops were being modelled as having a latency of 2 and using pipeline M. The instructions affected include the "unshifted" versions of ADD/SUB, among others.


https://reviews.llvm.org/D145370

Files:
  llvm/lib/Target/AArch64/AArch64.td
  llvm/lib/Target/AArch64/AArch64SchedNeoverseN2.td
  llvm/lib/Target/AArch64/AArch64SchedPredNeoverse.td
  llvm/test/tools/llvm-mca/AArch64/Neoverse/N2-basic-instructions.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145370.502594.patch
Type: text/x-patch
Size: 50342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230306/69421360/attachment.bin>


More information about the llvm-commits mailing list