RFR: 8361582: AArch64: Some ConH values cannot be replicated with SVE [v4]

Emanuel Peter epeter at openjdk.org
Wed Aug 20 13:15:44 UTC 2025


On Wed, 13 Aug 2025 10:20:29 GMT, Bhavana Kilambi <bkilambi at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/c2/aarch64/TestFloat16Replicate.java line 45:
>> 
>>> 43: public class TestFloat16Replicate {
>>> 44:     private static short[] input;
>>> 45:     private static short[] output;
>> 
>> This might give things even more chance to vectorize? Not sure, feel free to ignore.
>> 
>> Suggestion:
>> 
>>     private static final short[] INPUTE;
>>     private static final short[] OUTPUT;
>
> I hope it's ok to not add these changes to the code. The loops are getting vectorized fine and the tests do pass on aarch64 and x86. I will consider this if there's any issue with auto vectorization in the futurre. Thanks

I don't think that making the arrays final will make any difference for vectorization.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26589#discussion_r2288127135


More information about the hotspot-compiler-dev mailing list