Integrated: 8282204: Use lea instructions for arithmetic operations on x86_64

Quan Anh Mai duke at openjdk.java.net
Wed Mar 23 09:48:40 UTC 2022


On Mon, 21 Feb 2022 15:54:47 GMT, Quan Anh Mai <duke at openjdk.java.net> wrote:

> Hi,
> 
> This patch adds several matching rules for x86_64 backend to use `lea` instructions for several fused arithmetic operations. Also, `lea`s don't kill flags and allow different `dst` and `src`, so it is preferred over `sll` if possible, too. 
> 
> Thank you very much.

This pull request has now been integrated.

Changeset: d8c55725
Author:    Quan Anh Mai <anhmdq99 at gmail.com>
Committer: Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d8c55725e0f85e21c16bb81e3f1a9bcfacc59f87
Stats:     297 lines in 4 files changed: 271 ins; 15 del; 11 mod

8282204: Use lea instructions for arithmetic operations on x86_64

Reviewed-by: jiefu, sviswanathan, thartmann

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

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


More information about the hotspot-compiler-dev mailing list