RFR: 8332268: C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes [v20]

theoweidmannoracle duke at openjdk.org
Tue Dec 10 13:06:02 UTC 2024


> 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 test/hotspot/jtreg/compiler/splitif/TestSplitDivisionThroughPhi.java
  
  Co-authored-by: Christian Hagedorn <christian.hagedorn at oracle.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22061/files
  - new: https://git.openjdk.org/jdk/pull/22061/files/94425ea6..75659ae3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22061&range=19
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22061&range=18-19

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22061.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22061/head:pull/22061

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


More information about the hotspot-compiler-dev mailing list