git: openjdk/jdk: 8279607: Existing optimization "~x+1" -> "-x" can be generalized to "~x+c" -> "(c-1)-x".

Tobias Hartmann thartmann at openjdk.java.net
Thu Jan 20 07:39:39 UTC 2022


Changeset: 0bf95a1a
Author:    Zhiqiang Zang <zhiqiang.zang at utexas.edu>
Committer: Tobias Hartmann <thartmann at openjdk.org>
Date:      2022-01-20 07:38:04 +0000
URL:       https://git.openjdk.java.net/jdk/commit/0bf95a1a7327cc4899863143e2dfdf3d87dbdf0c

8279607: Existing optimization "~x+1" -> "-x" can be generalized to "~x+c" -> "(c-1)-x".

Reviewed-by: thartmann, kvn

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



More information about the jdk-changes mailing list