RFR: 8373026: C2 SuperWord and Vector API: vector algorithms test and benchmark [v16]
Emanuel Peter
epeter at openjdk.org
Thu Jan 29 08:29:33 UTC 2026
On Wed, 28 Jan 2026 23:07:49 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Emanuel Peter has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Jatins typo fix part 2
>>
>> Co-authored-by: Jatin Bhateja <jatinbha.cloud at gmail.com>
>> - Jatins typo fix part 1
>>
>> Co-authored-by: Jatin Bhateja <jatinbha.cloud at gmail.com>
>
> test/micro/org/openjdk/bench/vm/compiler/VectorAlgorithmsImpl.java line 534:
>
>> 532: for (; i < SPECIES_I512.loopBound(a.length); i += SPECIES_I512.length()) {
>> 533: IntVector v = IntVector.fromArray(SPECIES_I512, a, i);
>> 534: v = v.add(v.rearrange(shf1), mask1);
>
> These are lane shifting operations, so another variant can use `compress` with the masks as input. Another could use `slice`, ideally the rearrange and slice variants would generate comparable code, or the compress and slice would.
Ah good ideas! I'll note that down for a follow-up RFE!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28639#discussion_r2740490494
More information about the hotspot-compiler-dev
mailing list