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

Vladimir Kozlov kvn at openjdk.java.net
Mon May 10 17:23:07 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

Nice.

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

Marked as reviewed by kvn (Reviewer).

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


More information about the hotspot-compiler-dev mailing list