RFR: 8361353: [PPC64] C2: Add nodes UMulHiL, CmpUL3, UMinV, UMaxV, NegVI [v6]

David Briemann dbriemann at openjdk.org
Tue Jul 8 11:49:39 UTC 2025


On Tue, 8 Jul 2025 11:29:20 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

>> David Briemann has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   rename instruction, add extra predicate cond for type int
>
> src/hotspot/cpu/ppc/ppc.ad line 13601:
> 
>> 13599: instruct vneg4I_reg(vecX dst, vecX src) %{
>> 13600:   match(Set dst (NegVI src));
>> 13601:   predicate(PowerArchitecturePPC64 >= 9 && Matcher::vector_element_basic_type(n) == T_INT);
> 
> Why not also for `T_LONG` (using `vnegd`)?

Because we have made the experience that the vector instructions for longs are very slow on PPC. So far all of them I tried or implemented were slower than the non-vectorized alternative.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26115#discussion_r2192276433


More information about the hotspot-compiler-dev mailing list