8263591: Two C2 compiler phases with the name "after matching"

Reviewed-by: neliasso, chagedorn
This commit is contained in:
Tobias Hartmann 2021-03-29 12:41:09 +00:00
parent 3caea470e1
commit 3516c2650c
3 changed files with 4 additions and 7 deletions

View file

@ -2754,7 +2754,6 @@ void Compile::Code_Gen() {
if (failing()) {
return;
}
print_method(PHASE_AFTER_MATCHING, 3);
}
// In debug mode can dump m._nodes.dump() for mapping of ideal to machine
// nodes. Mapping is only valid at the root of each matched subtree.
@ -4686,7 +4685,7 @@ void Compile::sort_macro_nodes() {
}
}
void Compile::print_method(CompilerPhaseType cpt, const char *name, int level, int idx) {
void Compile::print_method(CompilerPhaseType cpt, const char *name, int level) {
EventCompilerPhase event;
if (event.should_commit()) {
CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, cpt, C->_compile_id, level);
@ -4708,7 +4707,7 @@ void Compile::print_method(CompilerPhaseType cpt, int level, int idx) {
jio_snprintf(output, sizeof(output), "%s", CompilerPhaseTypeHelper::to_string(cpt));
}
#endif
print_method(cpt, output, level, idx);
print_method(cpt, output, level);
}
void Compile::print_method(CompilerPhaseType cpt, Node* n, int level) {
@ -4774,7 +4773,7 @@ void igv_print(bool network, const char* phase_name) {
// Called from debugger. Normal write to the default _printer. Only works if Ideal Graph Visualizer printing flags are set.
void igv_print_default() {
Compile::current()->print_method(PHASE_DEBUG, 0, 0);
Compile::current()->print_method(PHASE_DEBUG, 0);
}
// Called from debugger, especially when replaying a trace in which the program state cannot be altered like with rr replay.