Integrated: 8365205: C2: Optimize popcount value computation using knownbits

Jatin Bhateja jbhateja at openjdk.org
Tue Oct 14 03:38:22 UTC 2025


On Wed, 3 Sep 2025 16:10:43 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> This patch optimizes PopCount value transforms using KnownBits information.
> Following are the results of the micro-benchmark included with the patch
> 
> 
> 
> System: 13th Gen Intel(R) Core(TM) i3-1315U
> 
> Baseline:
> Benchmark                                      Mode  Cnt       Score   Error  Units
> PopCountValueTransform.LogicFoldingKerenLong  thrpt    2  215460.670          ops/s
> PopCountValueTransform.LogicFoldingKerenlInt  thrpt    2  294014.826          ops/s
> 
> Withopt:
> Benchmark                                      Mode  Cnt       Score   Error  Units
> PopCountValueTransform.LogicFoldingKerenLong  thrpt    2  389978.082          ops/s
> PopCountValueTransform.LogicFoldingKerenlInt  thrpt    2  417261.583          ops/s
> 
> 
> Kindly review and share your feedback.
> 
> Best Regards,
> Jatin

This pull request has now been integrated.

Changeset: 44964181
Author:    Jatin Bhateja <jbhateja at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/449641813ada3b0af6441dd7299e40235e7adf56
Stats:     321 lines in 5 files changed: 321 ins; 0 del; 0 mod

8365205: C2: Optimize popcount value computation using knownbits

Reviewed-by: epeter, hgreule, qamai

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

PR: https://git.openjdk.org/jdk/pull/27075


More information about the hotspot-compiler-dev mailing list