RFR: 8280511: AArch64: Combine shift and negate to a single instruction

Fei Gao fgao at openjdk.java.net
Thu Feb 24 10:45:10 UTC 2022


On Tue, 15 Feb 2022 06:48:10 GMT, Fei Gao <fgao at openjdk.org> wrote:

> Hi,
> 
> In AArch64,
> 
> asr     x10, x1, #31
> neg     x0, x10
> 
> can be optimized to:
> `neg    x0, x1, asr #31`
> 
> To implement the instruction combining, we add matching rules in the backend.
> 
> Thanks.

Hi @theRealAph , can I have your review :)? Thanks.

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

PR: https://git.openjdk.java.net/jdk/pull/7471


More information about the hotspot-compiler-dev mailing list