RFR: 8367967: C2: "fatal error: Not monotonic" with Mod nodes [v2]

Hannes Greule hgreule at openjdk.org
Mon Sep 22 21:40:47 UTC 2025


> Generally, we shouldn't return a wider type (ZERO) if there is a later case that would return a more narrow type (TOP) for the same input types. If the inputs are widened and the first case doesn't match anymore but the later one still does, the result is not monotonic with the previous result.
> 
> Please review :)

Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:

  add a second @run

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27408/files
  - new: https://git.openjdk.org/jdk/pull/27408/files/9ba78d4e..ade824e0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27408&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27408&range=00-01

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

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


More information about the hotspot-compiler-dev mailing list