RFR: 8303553: AArch64: Add BCAX backend rule

changpeng1997 duke at openjdk.org
Wed Mar 29 09:45:42 UTC 2023


On Wed, 29 Mar 2023 09:32:19 GMT, Andrew Haley <aph at openjdk.org> wrote:

> Do we have any reason to believe that this instruction will ever be matched in a Java application? If not, it's just slowing down compilation for no good reason.

Hello.

This computing pattern (a ^ (b & (~c))) can be found in some SHA-3 java implementation, like https://github.com/aelstad/keccakj/blob/07185d29fb6c881570e2d7fd2b160460626dc130/src/main/java/com/github/aelstad/keccakj/core/Keccak1600.java#L309.

I believe this patch can accelerate some SHA-3 applications implemented by Java.

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

PR Comment: https://git.openjdk.org/jdk/pull/13222#issuecomment-1488276495


More information about the hotspot-compiler-dev mailing list