Integrated: 8278868: Add x86 vectorization support for Long.bitCount()

Vamsi Parasa duke at openjdk.java.net
Tue Jan 11 18:51:33 UTC 2022


On Wed, 15 Dec 2021 23:51:19 GMT, Vamsi Parasa <duke at openjdk.java.net> wrote:

> Vectorization support of Integer.bitCount() already exists but currently the same support is lacking for Long.bitCount(). Similar to the C2 PopCountVI node, we created a C2 PopCountVL node and used vpopcntq x86 instruction to enable vectorized Long.bitCount(). This patch shows 2.57x improvement in performance on a JMH micro benchmark due to x86 vectorization.

This pull request has now been integrated.

Changeset: c4518e25
Author:    Vamsi Parasa <srinivas.vamsi.parasa at intel.com>
Committer: Sandhya Viswanathan <sviswanathan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/c4518e257c1680a6cdb80b7e177d01700ea2c54e
Stats:     237 lines in 11 files changed: 231 ins; 0 del; 6 mod

8278868: Add x86 vectorization support for Long.bitCount()

Reviewed-by: jbhateja, sviswanathan, kvn

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

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


More information about the hotspot-compiler-dev mailing list