RFR: 8276162: Optimise unsigned comparison pattern [v2]
Mai Đặng Quân Anh
duke at openjdk.java.net
Thu Nov 11 05:12:13 UTC 2021
On Wed, 10 Nov 2021 20:19:52 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Mai Đặng Quân Anh has updated the pull request incrementally with one additional commit since the last revision:
>>
>> fix copyright declaration
>
> src/hotspot/share/opto/subnode.cpp line 1537:
>
>> 1535: // Change x +- Integer.MIN_VALUE <=> y +- Integer.MIN_VALUE into x u<=> y
>> 1536: if ((_test._test == BoolTest::lt || _test._test == BoolTest::le ||
>> 1537: _test._test == BoolTest::gt || _test._test == BoolTest::ge) &&
>
> You can use `(_test. is_less() || _test.is_greater())` here.
Thank you very much for the review, I have addressed this and the following comment.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6101
More information about the hotspot-compiler-dev
mailing list