RFR: 8373026: C2 SuperWord and Vector API: vector algorithms test and benchmark [v3]
Emanuel Peter
epeter at openjdk.org
Wed Jan 14 09:00:29 UTC 2026
On Wed, 17 Dec 2025 17:42:35 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> mask compress for Paul
>
> test/micro/org/openjdk/bench/vm/compiler/VectorAlgorithmsImpl.java line 361:
>
>> 359: v = v.compress(mask);
>> 360: int trueCount = mask.trueCount();
>> 361: var prefixMask = VectorMask.fromLong(SPECIES_I, (1L << trueCount) - 1);
>
> In case you did not already try, you can compress the mask to produce the mask prefix, as in `v.intoArray(r, j, mask.compress())`. Unsure if that will make a difference in the codegen though.
@PaulSandoz I used `mask.compress` now :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28639#discussion_r2689541613
More information about the hotspot-compiler-dev
mailing list