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

Emanuel Peter epeter at openjdk.org
Thu Apr 3 09:39:52 UTC 2025


On Thu, 27 Feb 2025 02:38:09 GMT, Dean Long <dlong at openjdk.org> wrote:

>> Jasmine Karthikeyan has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>> 
>>  - Merge
>>  - Improve AbsNode::Value
>
> src/hotspot/share/opto/subnode.cpp line 1938:
> 
>> 1936: 
>> 1937:   NativeType lo_abs = uabs(t->_lo);
>> 1938:   NativeType hi_abs = uabs(t->_hi);
> 
> Converting unsigned to signed is C++ Undefined Behavior, is it not?

@dean-long  ?

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

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


More information about the hotspot-compiler-dev mailing list