RFR: 8267968: [PPC64] Use prefixed load and addi instructions for better performance in POWER10 [v4]

Kazunori Ogata ogatak at openjdk.java.net
Thu Jun 10 07:33:38 UTC 2021


> The POWER10 processor supports prefixed load and addi instructions that have larger displacement field of up to 34-bits. We can reduce instruction cycles to load constant from TOC and load an immediate value to a register.
> 
> Assembler::{load|add}_const_optimized() and LoadCon[LPFD]Nodes are modified to use prefixed instructions, with fixing other functions that are affected by this change.
> 
> I ran jtreg test on both POWER10 and POWER8 machines by using "make test-tier1" and verified no additional fails by this change. I also ran DaCapo, Renaissance, and SPECjbb2015 on both of them and verified they run successfully.

Kazunori Ogata has updated the pull request incrementally with two additional commits since the last revision:

 - Rename paddi_or_addi to paddi_or_addi_r0ok because it accepts R0
 - Remove unreachable code blocks

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4267/files
  - new: https://git.openjdk.java.net/jdk/pull/4267/files/0615adac..607120cb

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

  Stats: 56 lines in 2 files changed: 5 ins; 23 del; 28 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4267.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4267/head:pull/4267

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


More information about the hotspot-dev mailing list