RFR: 8282204: Use lea instructions for arithmetic operations on x86_64 [v3]

Quan Anh Mai duke at openjdk.java.net
Wed Feb 23 12:09:33 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.

Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:

  add predicate

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7560/files
  - new: https://git.openjdk.java.net/jdk/pull/7560/files/bcaeb3d3..b09260b1

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7560&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7560&range=01-02

  Stats: 39 lines in 2 files changed: 25 ins; 2 del; 12 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