RFR: 8367967: C2: "fatal error: Not monotonic" with Mod nodes
Hannes Greule
hgreule at openjdk.org
Sun Sep 21 06:19:57 UTC 2025
On Sun, 21 Sep 2025 06:11:11 GMT, Hannes Greule <hgreule at openjdk.org> wrote:
> 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 :)
Thanks for the test case!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27408#issuecomment-3315532390
More information about the hotspot-compiler-dev
mailing list