JDK-8281505 : Add CompileCommand PrintIdealPhase
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-02-08
  • Updated: 2022-03-28
  • Resolved: 2022-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
This patch adds the CompileCommand PrintIdealPhase. It allows to specify a list of compiler phases that will print the ideal IR.

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.

Usage:
-XX:CompileCommand=PrintIdealPhase,*::indexOf,"AFTER_EA,FINAL_CODE"

I have chosen not to add this as a separate VM flag. Debug flags like this usually only applied to specific methods.
Comments
Changeset: 483d4b97 Author: Nils Eliasson <neliasso@openjdk.org> Date: 2022-02-14 08:27:21 +0000 URL: https://git.openjdk.java.net/jdk/commit/483d4b97e0ae4ab7b0d87058901f57688a0f0811
14-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7392 Date: 2022-02-08 22:34:27 +0000
10-02-2022