Skip to content

Commit 3516c26

Browse files
committed
8263591: Two C2 compiler phases with the name "after matching"
Reviewed-by: neliasso, chagedorn
1 parent 3caea47 commit 3516c26

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/hotspot/share/opto/compile.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,6 @@ void Compile::Code_Gen() {
27542754
if (failing()) {
27552755
return;
27562756
}
2757-
print_method(PHASE_AFTER_MATCHING, 3);
27582757
}
27592758
// In debug mode can dump m._nodes.dump() for mapping of ideal to machine
27602759
// nodes. Mapping is only valid at the root of each matched subtree.
@@ -4686,7 +4685,7 @@ void Compile::sort_macro_nodes() {
46864685
}
46874686
}
46884687

4689-
void Compile::print_method(CompilerPhaseType cpt, const char *name, int level, int idx) {
4688+
void Compile::print_method(CompilerPhaseType cpt, const char *name, int level) {
46904689
EventCompilerPhase event;
46914690
if (event.should_commit()) {
46924691
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) {
47084707
jio_snprintf(output, sizeof(output), "%s", CompilerPhaseTypeHelper::to_string(cpt));
47094708
}
47104709
#endif
4711-
print_method(cpt, output, level, idx);
4710+
print_method(cpt, output, level);
47124711
}
47134712

47144713
void Compile::print_method(CompilerPhaseType cpt, Node* n, int level) {
@@ -4774,7 +4773,7 @@ void igv_print(bool network, const char* phase_name) {
47744773

47754774
// Called from debugger. Normal write to the default _printer. Only works if Ideal Graph Visualizer printing flags are set.
47764775
void igv_print_default() {
4777-
Compile::current()->print_method(PHASE_DEBUG, 0, 0);
4776+
Compile::current()->print_method(PHASE_DEBUG, 0);
47784777
}
47794778

47804779
// Called from debugger, especially when replaying a trace in which the program state cannot be altered like with rr replay.

src/hotspot/share/opto/compile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ class Compile : public Phase {
643643
#endif
644644
}
645645

646-
void print_method(CompilerPhaseType cpt, const char *name, int level = 1, int idx = 0);
646+
void print_method(CompilerPhaseType cpt, const char *name, int level = 1);
647647
void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0);
648648
void print_method(CompilerPhaseType cpt, Node* n, int level = 3);
649649

src/hotspot/share/opto/phasetype.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ enum CompilerPhaseType {
4848
PHASE_ITER_GVN2,
4949
PHASE_PHASEIDEALLOOP_ITERATIONS,
5050
PHASE_OPTIMIZE_FINISHED,
51-
PHASE_AFTER_MATCHING,
5251
PHASE_GLOBAL_CODE_MOTION,
5352
PHASE_FINAL_CODE,
5453
PHASE_AFTER_EA,
@@ -100,7 +99,6 @@ class CompilerPhaseTypeHelper {
10099
case PHASE_ITER_GVN2: return "Iter GVN 2";
101100
case PHASE_PHASEIDEALLOOP_ITERATIONS: return "PhaseIdealLoop iterations";
102101
case PHASE_OPTIMIZE_FINISHED: return "Optimize finished";
103-
case PHASE_AFTER_MATCHING: return "After Matching";
104102
case PHASE_GLOBAL_CODE_MOTION: return "Global code motion";
105103
case PHASE_FINAL_CODE: return "Final Code";
106104
case PHASE_AFTER_EA: return "After Escape Analysis";

0 commit comments

Comments
 (0)