Integrated: 8266810: Move trivial Matcher code to cpu-specific header files

Claes Redestad redestad at openjdk.java.net
Fri May 14 10:40:39 UTC 2021


On Mon, 10 May 2021 11:03:06 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> This patch moves a number of constants and trivial methods to newly introduced matcher_<cpu>.hpp files.
> 
> This enables constant folding and dead code elimination on one hand, and improved code navigation in IDEs on the other. 
> 
> The effect of this refactoring is modest: on Linux-x64 Hotspot (libjvm.so) shrinks by ~10Kb and C2 initialization cost drops from 8.5M to 8.3M.
> 
> Testing: tier1-3, GHA builds of all architectures on linux

This pull request has now been integrated.

Changeset: 644f28c0
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/644f28c0ead18a37d7996ec30b49718a2f6aa189
Stats:     1459 lines in 15 files changed: 775 ins; 682 del; 2 mod

8266810: Move trivial Matcher code to cpu-specific header files

Reviewed-by: kvn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list