RFR: 8349563: Improve AbsNode::Value() for integer types [v2]

Dean Long dlong at openjdk.org
Thu Apr 3 19:15:06 UTC 2025


On Thu, 3 Apr 2025 10:57:06 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> @dean-long  ?
>
> No converting unsigned to signed is not UB, the behaviour is the same as in Java.

I believe it's actually implementation-defined, not UB, until C++ 20, according to discussion in this other PR:
https://github.com/openjdk/jdk/pull/24184#discussion_r2011464234

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23685#discussion_r2027594672


More information about the hotspot-compiler-dev mailing list