RFR: 8273021: C2: Improve Add and Xor ideal optimizations [v3]
Yi Yang
yyang at openjdk.java.net
Wed Sep 8 05:56:47 UTC 2021
On Mon, 6 Sep 2021 04:24:19 GMT, Eric Liu <eliu at openjdk.org> wrote:
>> Yi Yang has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - dontinline
>> - more random
>
> src/hotspot/share/opto/addnode.cpp line 1011:
>
>> 1009: // be -1^(x+(-1)).
>> 1010: if (op1 == Op_AddI && phase->type(in2) == TypeInt::MINUS_1) {
>> 1011: if (phase->type(in1->in(2)) == TypeInt::MINUS_1) {
>
> These two conditions could be combined.
Yes, I've combined these conditions.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5266
More information about the hotspot-compiler-dev
mailing list