Integrated: 8281505: Add CompileCommand PrintIdealPhase

Nils Eliasson neliasso at openjdk.java.net
Mon Feb 14 08:31:21 UTC 2022


On Tue, 8 Feb 2022 22:34:27 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:

> 1. This patch adds the CompileCommand PrintIdealPhase. It allows to specify a list of compiler phases that will print the ideal IR.
> 
> -XX:CompileCommand=PrintIdealPhase,Class::method,MATCHING,FINAL_CODE"
> 
> The motivation for this is that during work with the IR framework I have found the need for printing specific phases, and the previously added PrintIdealLevel is forced to use levels that just prints to much. (I will remove PrintIdealLevel in a separate patch since it's not needed anymore.)
> 
> I have chosen not to add PrintIdealPhase as a VM flag, but keep it as CompileCommand/CompilerControl only.
> 
> 2. This patch also changes the print_ideal output to emit the start tag with the phase name instead of the description, so that the name in the CompileCommand matches with what ends up in the tag. That tag is a new addition since PrintIdealLevel, so no one is using it yet.
> 
> 3. This patch also removes an unused allocation in register_jfr_phasetype_serializer. 
> 
> Please review,
> Nils Eliasson

This pull request has now been integrated.

Changeset: 483d4b97
Author:    Nils Eliasson <neliasso at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/483d4b97e0ae4ab7b0d87058901f57688a0f0811
Stats:     408 lines in 10 files changed: 306 ins; 31 del; 71 mod

8281505: Add CompileCommand PrintIdealPhase

Reviewed-by: kvn, thartmann, chagedorn

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

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


More information about the hotspot-compiler-dev mailing list