RFR: 8280686: Remove Compile::print_method_impl [v2]
Xin Liu
xliu at openjdk.java.net
Wed Jan 26 20:39:01 UTC 2022
> This is a follow-up task of JDK-8280274. I think it is still reasonable to only evaluate
> "CompilerPhaseTypeHelper::to_string(cpt)" when NOT_PRODUCT is defined, but we can do
> that in the function body. We should avoid from messing around interfaces with macros.
>
> Actually, it's not necessary to have print_method_impl as a public interface at all.
> The only client of it is print_method().
>
> Here is the current interface of Compile::print_method
> V1: print_method(CompilerPhaseType cpt, int level)
> V2: print_method(CompilerPhaseType cpt, Node* n, int level)
>
> The only client of V2 is vector.cpp. It attempts to dump the phase name and vec_box node. It's impossible to to have n=NULL. No one will consume property <"phase :NULL">.
>
> I think we should go in this way.
>
> void Compile::print_method(CompilerPhaseType cpt, int level) {
> print_method(cpt, NULL, level);
> }
>
>
> Testing:
> Verify that igv is still working with PrintIdealGraphLevel=3/4
Xin Liu has updated the pull request incrementally with one additional commit since the last revision:
Use default argument for function overload.
This patch further simplify Compile::print_method. there's only one
version of it with an optional argument Node*.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/7229/files
- new: https://git.openjdk.java.net/jdk/pull/7229/files/8985102f..503b90f2
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7229&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7229&range=00-01
Stats: 16 lines in 3 files changed: 0 ins; 5 del; 11 mod
Patch: https://git.openjdk.java.net/jdk/pull/7229.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7229/head:pull/7229
PR: https://git.openjdk.java.net/jdk/pull/7229
More information about the hotspot-compiler-dev
mailing list