Withdrawn: 8328865: [c2] No need to convert "(x+1)+y" into "(x+y)+1" when y is a CallNode

duke duke at openjdk.org
Tue May 28 09:55:08 UTC 2024


On Tue, 26 Mar 2024 07:17:21 GMT, SUN Guoyun <duke at openjdk.org> wrote:

> 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
> 
> JMH in x86_64:
> <pre>
> before:
> Benchmark           Mode  Cnt      Score   Error  Units
> CallNode.test      thrpt    2  26397.733          ops/s
> 
> after:
> Benchmark           Mode  Cnt      Score   Error  Units
> CallNode.test      thrpt    2  27839.337          ops/s
> </pre>

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/18482


More information about the hotspot-compiler-dev mailing list