RFR: 8366815: C2: Delay Mod/Div by constant transformation

Hannes Greule hgreule at openjdk.org
Thu Oct 23 15:09:00 UTC 2025


On Thu, 23 Oct 2025 11:39:13 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> We could still constant fold the comparison.... as long as the comparison is "relaxed enough". It might be worth having a handfull of examples like that: some that still constant fold, and some that don't because the comparison is too "sharp", and the "rounding error" too large. What do you think?

Do you mean as part of the comment? That should be doable and provide useful context, yes.

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

PR Comment: https://git.openjdk.org/jdk/pull/27886#issuecomment-3437522539


More information about the hotspot-compiler-dev mailing list