RFR: 8307523: [vectorapi] Optimize MaskFromLongBenchmark.java

Chang Peng duke at openjdk.org
Sat May 6 05:59:15 UTC 2023


On Sat, 6 May 2023 03:11:50 GMT, Chang Peng <duke at openjdk.org> wrote:

>> Storing into a boolean array should be safer as `trueCount` can be implemented as `bitCount(toLong())`. Thanks.
>
>> Storing into a boolean array should be safer as `trueCount` can be implemented as `bitCount(toLong())`. Thanks.
> 
> I think intoArray() may have heavier cost.

> @changpeng1997 Yes that's right, I think ideally we can make `Blackhole` receive a `VectorNode`, but this patch is good as it is

Thanks for your review.

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

PR Comment: https://git.openjdk.org/jdk/pull/13851#issuecomment-1537060606


More information about the hotspot-compiler-dev mailing list