Integrated: 8331558: AArch64: optimize integer remainder

Jin Guojie duke at openjdk.org
Fri May 10 10:04:21 UTC 2024


On Mon, 6 May 2024 01:30:45 GMT, Jin Guojie <duke at openjdk.org> wrote:

> 8331558: AArch64: optimize integer remainder
>     On some Arm processors, a separate multiply/subtract is actually faster than the combined instruction.
> 
> 8331556: AArch64: CPU_Model support for Neoverse N1/N2/V1/V2
>     Add full platform coverage for Neoverse variants in vm_version.?pp
> 
> The following test has passed, which shows definite performance improvement.
> 
> make test TEST="micro:java.lang.IntegerDivMod"
> make test TEST="micro:java.lang.LongDivMod"
> 
> * IntegerDivMod.testDivideRemainderUnsigned
> baseline(ns/ops)                2223
> with this pacth(ns/ops)         1885    
> improvement(%)                  17.93%
> 
> * IntegerDivMod.testRemainderUnsigned
> baseline(ns/ops)                2225
> with this pacth(ns/ops)         1885    
> improvement(%)                  18.03%
> 
> * LongDivMod.testDivideRemainderUnsigned
> baseline(ns/ops)                2231
> with this pacth(ns/ops)         1894    
> improvement(%)                  17.79%
> 
> * LongDivMod.testRemainderUnsigned
> baseline(ns/ops)                2232
> with this pacth(ns/ops)         1891
> improvement(%)                  18.03%

This pull request has now been integrated.

Changeset: dab92c51
Author:    释天 <jinguojie.jgj at alibaba-inc.com>
Committer: Eric Liu <eliu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dab92c51c70767abcda3b1a91dd7d1a9b40290c1
Stats:     69 lines in 4 files changed: 54 ins; 9 del; 6 mod

8331558: AArch64: optimize integer remainder

Reviewed-by: eliu, aph

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

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


More information about the hotspot-dev mailing list