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

Quan Anh Mai duke at openjdk.java.net
Mon Feb 21 16:01:14 UTC 2022


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.

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

Commit messages:
 - Use lea

Changes: https://git.openjdk.java.net/jdk/pull/7560/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7560&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282204
  Stats: 107 lines in 2 files changed: 78 ins; 5 del; 24 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7560.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7560/head:pull/7560

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


More information about the hotspot-compiler-dev mailing list