[PATCH] D159367: [ARM] Improve reduction fadd/fmul costs
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 10:23:49 PDT 2023
dmgreen created this revision.
dmgreen added reviewers: samtebbs, NickGuy, SjoerdMeijer.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
This adds some basic fadd/fmul reduction costs for MVE/NEON. It reduces by halving the vector size until it it gets scalarized, with some additional costs for fp16 which may require extracting the top lanes.
https://reviews.llvm.org/D159367
Files:
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/reduce-fp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159367.555428.patch
Type: text/x-patch
Size: 25369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/37d609fb/attachment.bin>
More information about the llvm-commits
mailing list