RFR: 8354282: C2: more crashes in compiled code because of dependency on removed range check CastIIs
Roland Westrelin
roland at openjdk.org
Wed Oct 1 12:33:55 UTC 2025
On Thu, 24 Apr 2025 09:12:39 GMT, Roland Westrelin <roland at openjdk.org> wrote:
> If a `CastII` that does not narrow its input has its type being a constant, do you think GVN should transform it into a constant, or such nodes should return the bottom type so that it is not folded into a floating `ConNode`?
The current patch allows constant folding. I could (since I last commented on this PR) write test cases for which this causes issues. Disallowing constant folding seems too strict to me. I propose the issues related to constant folding be handled in a separate PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24575#issuecomment-3356091219
More information about the hotspot-compiler-dev
mailing list