8319664: IGV always output on PhaseRemoveUseless

Reviewed-by: rcastanedalo, thartmann
This commit is contained in:
Joshua Cao 2023-11-09 14:56:57 +00:00 committed by Jie Fu
parent f57b78c9c3
commit a3f1b33b9b
2 changed files with 1 additions and 2 deletions
src/hotspot/share/opto

@ -812,8 +812,6 @@ Compile::Compile( ciEnv* ci_env, ciMethod* target, int osr_bci,
if (failing()) return;
print_method(PHASE_BEFORE_REMOVEUSELESS, 3);
// Remove clutter produced by parsing.
if (!failing()) {
ResourceMark rm;

@ -364,6 +364,7 @@ NodeHash::~NodeHash() {
//------------------------------PhaseRemoveUseless-----------------------------
// 1) Use a breadthfirst walk to collect useful nodes reachable from root.
PhaseRemoveUseless::PhaseRemoveUseless(PhaseGVN* gvn, Unique_Node_List& worklist, PhaseNumber phase_num) : Phase(phase_num) {
C->print_method(PHASE_BEFORE_REMOVEUSELESS, 3);
// Implementation requires an edge from root to each SafePointNode
// at a backward branch. Inserted in add_safepoint().