RFR: 8318959: C2: define MachNode::fill_new_machnode() statically [v2]
Roberto Castañeda Lozano
rcastanedalo at openjdk.org
Thu Nov 2 07:41:14 UTC 2023
> This changeset makes the implementation of `MachNode::fill_new_machnode()` static instead of ADLC-generated, for better maintainability. The original motivation to generate this function was to replace its logic with a `ShouldNotCallThis()` call for targets that do not define CISC spill or short branch instruction versions. However, most targets (including x64 and aarch64) feature at least one of these and hence do not make use of the ADLC specialization. For those that do, the savings (approximately 140 bytes on a x64 build of `libjvm.so`) are marginal and (arguably) not worth the additional code complexity.
>
> See motivating discussion in https://mail.openjdk.org/pipermail/hotspot-compiler-dev/2023-October/thread.html#69348.
>
> #### Testing
> - tier1-3 (windows-x64, linux-x64, linux-aarch64, macosx-x64, macosx-aarch64; release and debug mode)
Roberto Castañeda Lozano has updated the pull request incrementally with one additional commit since the last revision:
Do not return anything from 'define_cisc_version' and 'define_short_branch_methods'
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16444/files
- new: https://git.openjdk.org/jdk/pull/16444/files/276f39c4..af289b04
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16444&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16444&range=00-01
Stats: 8 lines in 2 files changed: 0 ins; 4 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/16444.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16444/head:pull/16444
PR: https://git.openjdk.org/jdk/pull/16444
More information about the hotspot-compiler-dev
mailing list