RFR: 8328865: [c2] No need to convert "(x+1)+y" into "(x+y)+1" when y is a CallNode
SUN Guoyun
duke at openjdk.org
Tue Mar 26 07:21:43 UTC 2024
This patch prohibits the conversion from "(x+1)+y" into "(x+y)+1" when y is a CallNode to reduce unnecessary spillcode and ADDNode.
Testing: tier1-3 in x86_64 and LoongArch64
-------------
Commit messages:
- Merge branch 'openjdk:master' into 8328865
- 8328865: [c2] No need to convert "(x+1)+y" into "(x+y)+1" when y is a CallNode
Changes: https://git.openjdk.org/jdk/pull/18482/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18482&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8328865
Stats: 11 lines in 1 file changed: 4 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/18482.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18482/head:pull/18482
PR: https://git.openjdk.org/jdk/pull/18482
More information about the hotspot-compiler-dev
mailing list