RFR: 8373026: C2 SuperWord and Vector API: vector algorithms test and benchmark
Emanuel Peter
epeter at openjdk.org
Thu Dec 18 07:03:00 UTC 2025
On Thu, 18 Dec 2025 06:58:50 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> 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.
>
> Ah, nice idea!
I'll note it down and implement and benchmark it later, once I get some more comments :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28639#discussion_r2629828819
More information about the hotspot-compiler-dev
mailing list