RFR: 8349563: Improve AbsNode::Value() for integer types [v3]
Jasmine Karthikeyan
jkarthikeyan at openjdk.org
Thu Jul 3 03:34:44 UTC 2025
On Wed, 28 May 2025 11:56:02 GMT, Emanuel Peter <epeter 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 four commits:
>>
>> - Replace uabs usage with ABS
>> - Merge branch 'master' into abs-value
>> - Merge
>> - Improve AbsNode::Value
>
> test/hotspot/jtreg/compiler/c2/irTests/TestIRAbs.java line 333:
>
>> 331: // [-9, -2] => [2, 9]
>> 332: return Math.abs(-((in & 7) + 2)) > 9;
>> 333: }
>
> Could we have some randomized cases here too? Or do we already have them somewhere?
I've added support for randomized ranges and if statement folding as suggested in the review comment.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23685#discussion_r2181563680
More information about the hotspot-compiler-dev
mailing list