RFR: 8283692: Add PrintIdealPhase that includes block scheduling
Vladimir Kozlov
kvn at openjdk.java.net
Fri Mar 25 19:46:50 UTC 2022
On Fri, 25 Mar 2022 14:47:44 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:
> Hi,
>
> This patch adds:
> 1) A new method Output::print_scheduling() that encapsulates the ir node printing on blocks
> 2) Modifying print_ideal_ir to use the print_scheduling() when there is a scheduling available
> 3) A new compiler phase MACH_ANALYSIS after the mach dependent optimizations.
>
> Motivation:
> This is used by the IR-test framework when testing optimizations on mach-nodes, and is a requirement to be able to test peephole-optimizations (because peephole-removed nodes are only removed from the scheduling, not from the graph.)
>
> Having a method for print_scheduling() is also very useful when debugging.
>
> Please review,
> Nils Eliasson
okay
-------------
Marked as reviewed by kvn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7960
More information about the hotspot-compiler-dev
mailing list