RFR: 8332268: C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes [v22]
duke
duke at openjdk.org
Wed Dec 11 13:43:46 UTC 2024
On Wed, 11 Dec 2024 12:06:01 GMT, theoweidmannoracle <duke at openjdk.org> wrote:
>> This PR introduces
>> - several new optimizations to unsigned division and modulo
>> - x % 1, x % x, x % 2^k
>> - x / 1, x / x, x / 2^k
>> - does not implement the Granlund and Montgomery algorithm, which has been implemented for signed modulo division in the past. It is unclear if a lot is to be gained by implementing this.
>> - tests to test existing optimizations for signed division and modulo
>> - does not test the Granlund and Montgomery algorithm directly
>
> theoweidmannoracle has updated the pull request incrementally with one additional commit since the last revision:
>
> Update src/hotspot/share/opto/divnode.cpp
>
> Co-authored-by: Christian Hagedorn <christian.hagedorn at oracle.com>
@theoweidmannoracle
Your change (at version 4f33cd6c6759b2db1a6884a2479c4f75a4171e88) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22061#issuecomment-2536022612
More information about the hotspot-compiler-dev
mailing list