git: openjdk/jdk: 8277882: New subnode ideal optimization: converting "c0 - (x + c1)" into "(c0 - c1) - x"

Igor Veresov iveresov at openjdk.java.net
Thu Dec 9 00:20:29 UTC 2021


Changeset: 35243558
Author:    Zhiqiang Zang <capapoc at gmail.com>
Committer: Igor Veresov <iveresov at openjdk.org>
Date:      2021-12-09 00:18:59 +0000
URL:       https://git.openjdk.java.net/jdk/commit/352435581e4354741684d66df8a33b1fbdb96162

8277882: New subnode ideal optimization: converting "c0 - (x + c1)" into "(c0 - c1) - x"

Reviewed-by: dlong, iveresov

! src/hotspot/share/opto/subnode.cpp
+ test/hotspot/jtreg/compiler/c2/TestSubIdealC0Minus_YPlusC1_.java
+ test/micro/org/openjdk/bench/vm/compiler/SubIdealC0Minus_YPlusC1_.java



More information about the jdk-changes mailing list