git: openjdk/jdk: 8281453: New optimization: convert ~x into -1-x when ~x is used in an arithmetic expression

Vladimir Kozlov kvn at openjdk.org
Thu Oct 6 22:16:13 UTC 2022


Changeset: 5dd851d8
Author:    Zhiqiang Zang <zhiqiang.zang at utexas.edu>
Committer: Vladimir Kozlov <kvn at openjdk.org>
Date:      2022-10-06 22:15:20 +0000
URL:       https://git.openjdk.org/jdk/commit/5dd851d872c50ef33034c56007c58e6fa69ebd32

8281453: New optimization: convert ~x into -1-x when ~x is used in an arithmetic expression

Reviewed-by: kvn

! src/hotspot/share/opto/addnode.cpp
! test/hotspot/jtreg/compiler/c2/irTests/AddLNodeIdealizationTests.java
- test/hotspot/jtreg/compiler/c2/irTests/TestIRAddIdealNotXPlusC.java
+ test/hotspot/jtreg/compiler/c2/irTests/XorINodeIdealizationTests.java
+ test/hotspot/jtreg/compiler/c2/irTests/XorLNodeIdealizationTests.java
! test/hotspot/jtreg/compiler/lib/ir_framework/IRNode.java
+ test/micro/org/openjdk/bench/vm/compiler/NotOpTransformation.java



More information about the jdk-changes mailing list