RFR: 8282541: AArch64: Auto-vectorize Math.round API [v3]
Andrew Haley
aph at openjdk.java.net
Wed Apr 20 10:06:27 UTC 2022
On Wed, 20 Apr 2022 09:51:34 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
>> Andrew Haley has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Put all SVE-mode ops in aarch64_sve.ad.
>> - Move size extimate for Op_RoundXX to matcher.
>
> src/hotspot/cpu/ppc/matcher_ppc.hpp line 168:
>
>> 166:
>> 167: // Returns pre-selection estimated cost of a vector operation.
>> 168: static int op_pre_select_sz_estimate(int vopc, BasicType ety, int vlen) {
>
> For Op_Round* on PPC and S390 we currently estimate size 30 but this changes it to zero. Presumably that's correct though as those platforms don't emit any code in the corresponding match rules?
As and when those platforms get ported, they should provide appropriate estimates. I an working on this code, though, and I'll change it back to 30 for other platforms.
BTW, many of the numbers in that table are wrong for non-x86, and we really should provide estimates that are AArch64-realistic, but not today.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8204
More information about the hotspot-dev
mailing list