RFR: 8278868: Add x86 vectorization support for Long.bitCount() [v4]

Vamsi Parasa duke at openjdk.java.net
Thu Jan 6 01:47:05 UTC 2022


On Wed, 5 Jan 2022 17:39:52 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:

>> Vamsi Parasa has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update popcount long test to use IR framework
>
> test/hotspot/jtreg/compiler/vectorization/TestPopCountVectorLong.java line 57:
> 
>> 55:     @Test // needs to be run in (fast) debug mode
>> 56:     @Warmup(10000)
>> 57:     @IR(counts = {"PopCountVL", "9"}) //9 PopCountVL nodes are generated for a long[] of LEN=1024
> 
> Could this be a failOn check instead of counts check? The number of PopCountVL nodes is dependent on loop unrolling which keeps changing with loop optimizations.

Looks like we can use the regex (">= ") which checks for atleast one PopCountVL node. Please see the updated code...

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

PR: https://git.openjdk.java.net/jdk/pull/6857


More information about the hotspot-dev mailing list