[PATCH] D159254: [AArch64] Fix schedmodel pre/post-index loads and stores for Neoverse V2
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 01:06:31 PDT 2023
SjoerdMeijer created this revision.
SjoerdMeijer added a reviewer: dmgreen.
Herald added subscribers: arphaman, gbedwell, hiraditya, kristof.beyls.
Herald added a reviewer: andreadb.
Herald added a project: All.
SjoerdMeijer requested review of this revision.
Herald added a project: LLVM.
Pre and post-index loads and stores are modelled incorrectly. The address update is modelled with too high latency. This is easily visible in llvm-mca's output and we discussed that earlier here:
https://github.com/llvm/llvm-project/issues/61047#issuecomment-1452120079
Part of the problem has to do with the way operands are defined in the scheduling model. It affects other operands as well (see the fadd in https://godbolt.org/z/d1Gbr48cE), but this seems to be a good start.
This fixes the problem for the Neoverse V2. The problem also affects the other Neoverse cores (different schedmodels influenced each other), but I won't be fixing the others as it would require checking performance. For the V2, performance wise this is also ok.
https://reviews.llvm.org/D159254
Files:
llvm/lib/Target/AArch64/AArch64SchedNeoverseV2.td
llvm/test/tools/llvm-mca/AArch64/Neoverse/V2-writeback.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159254.554925.patch
Type: text/x-patch
Size: 207016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230831/c10e9da8/attachment-0001.bin>
More information about the llvm-commits
mailing list