RFR: 8346890: AArch64: Type profile counters generate suboptimal code

Andrew Haley aph at openjdk.org
Thu Jan 9 16:37:07 UTC 2025


Type profile counters are emitted many times in C1-generated code. The generator was written a long time ago before we knew how best to write AArch64 code, and the generated code is rather suboptimal.

This PR reduces the size of a typical bimorphic type profile counter from 33 to 27 instructions.

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

Commit messages:
 - 8346890: AArch64: Profile counters generate suboptimal code
 - tmp

Changes: https://git.openjdk.org/jdk/pull/23012/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23012&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346890
  Stats: 29 lines in 3 files changed: 14 ins; 6 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/23012.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23012/head:pull/23012

PR: https://git.openjdk.org/jdk/pull/23012


More information about the hotspot-dev mailing list