RFR: 8366815: C2: Delay Mod/Div by constant transformation [v5]

Hannes Greule hgreule at openjdk.org
Fri Dec 19 08:11:06 UTC 2025


> The test cases show examples of code where `Value()` previously wasn't run because idealization took place before, resulting in less precise type analysis.
> 
> Please let me know what you think.

Hannes Greule has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:

 - use the right IR checks
 - Merge branch 'master' into delay-divmod-idealization
 - Merge branch 'master' into delay-divmod-idealization
 - review
 - expand comments
 - delay integral Div/Mod Ideal() until IGVN
 - test

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27886/files
  - new: https://git.openjdk.org/jdk/pull/27886/files/d9f8a698..db8fd790

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27886&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27886&range=03-04

  Stats: 11104 lines in 450 files changed: 7275 ins; 1527 del; 2302 mod
  Patch: https://git.openjdk.org/jdk/pull/27886.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27886/head:pull/27886

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


More information about the hotspot-compiler-dev mailing list