RFR: 8261008: Optimize Xor
Eric Liu
github.com+10482586+therealeliu at openjdk.java.net
Tue Mar 2 10:57:43 UTC 2021
On Mon, 1 Mar 2021 20:42:49 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
> `x - x` is already optimized: https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/subnode.cpp#L96
> `x | x` - here: https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/addnode.cpp#L781
>
> For `x ^ x` Value() method should be used as for SubNode.
Thanks for your review. I removed those code into `Value()` and will update after some tests finished.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2776
More information about the hotspot-compiler-dev
mailing list