[PATCH] D129141: [ARM] Switch the costs of mve1beat and mve4beat

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 5 06:10:25 PDT 2022


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

These three subtarget features are meant to control where MVE instructions take 1 vs 2 vs 4 architectural beats. The mve1beat feature is described as "Model MVE instructions as a 1 beat per tick architecture", meaning MVE instruction will execute over 4 cycles. mve4beat is the opposite where the entire 4 beats of the MVE instruction execute in a single cycle. The costs for the two were backwards though, not matching the cycle counts like they should. This patch switches the costs on the two to bring them in-line with expectations.


https://reviews.llvm.org/D129141

Files:
  llvm/lib/Target/ARM/ARM.td
  llvm/test/Analysis/CostModel/ARM/arith.ll
  llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129141.442271.patch
Type: text/x-patch
Size: 56116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220705/b572a76f/attachment.bin>


More information about the llvm-commits mailing list