diff --git a/src/hotspot/share/opto/loopTransform.cpp b/src/hotspot/share/opto/loopTransform.cpp index 436d8758df3..45b50592a26 100644 --- a/src/hotspot/share/opto/loopTransform.cpp +++ b/src/hotspot/share/opto/loopTransform.cpp @@ -751,9 +751,8 @@ void PhaseIdealLoop::do_peeling(IdealLoopTree *loop, Node_List &old_new) { cl->set_no_multiversion(); } #ifndef PRODUCT - if (PrintOpto && VerifyLoopOptimizations) { + if (TraceLoopOpts) { tty->print("Peeling a 'main' loop; resetting to 'normal' "); - loop->dump_head(); } #endif } @@ -1809,10 +1808,7 @@ void PhaseIdealLoop::do_unroll(IdealLoopTree *loop, Node_List &old_new, bool adj C->print_method(PHASE_BEFORE_LOOP_UNROLLING, 4, loop_head); #ifndef PRODUCT - if (PrintOpto && VerifyLoopOptimizations) { - tty->print("Unrolling "); - loop->dump_head(); - } else if (TraceLoopOpts) { + if (TraceLoopOpts) { if (loop_head->trip_count() < (uint)LoopUnrollLimit) { tty->print("Unroll %d(%2d) ", loop_head->unrolled_count()*2, loop_head->trip_count()); } else { @@ -2488,10 +2484,7 @@ bool PhaseIdealLoop::is_scaled_iv_plus_extra_offset(Node* exp1, Node* offset3, N // Eliminate range-checks and other trip-counter vs loop-invariant tests. void PhaseIdealLoop::do_range_check(IdealLoopTree* loop) { #ifndef PRODUCT - if (PrintOpto && VerifyLoopOptimizations) { - tty->print("Range Check Elimination "); - loop->dump_head(); - } else if (TraceLoopOpts) { + if (TraceLoopOpts) { tty->print("RangeCheck "); loop->dump_head(); } diff --git a/src/hotspot/share/opto/loopopts.cpp b/src/hotspot/share/opto/loopopts.cpp index 36545870ad8..72f3722c096 100644 --- a/src/hotspot/share/opto/loopopts.cpp +++ b/src/hotspot/share/opto/loopopts.cpp @@ -846,7 +846,6 @@ Node *PhaseIdealLoop::conditional_move( Node *region ) { if (phi == nullptr || _igvn.type(phi) == Type::TOP) { break; } - if (PrintOpto && VerifyLoopOptimizations) { tty->print_cr("CMOV"); } // Move speculative ops wq.push(phi); while (wq.size() > 0) { @@ -854,12 +853,6 @@ Node *PhaseIdealLoop::conditional_move( Node *region ) { for (uint j = 1; j < n->req(); j++) { Node* m = n->in(j); if (m != nullptr && !is_dominator(get_ctrl(m), cmov_ctrl)) { -#ifndef PRODUCT - if (PrintOpto && VerifyLoopOptimizations) { - tty->print(" speculate: "); - m->dump(); - } -#endif set_ctrl(m, cmov_ctrl); wq.push(m); } @@ -1491,7 +1484,7 @@ void PhaseIdealLoop::split_if_with_blocks_post(Node *n) { // Now split the IF C->print_method(PHASE_BEFORE_SPLIT_IF, 4, iff); - if ((PrintOpto && VerifyLoopOptimizations) || TraceLoopOpts) { + if (TraceLoopOpts) { tty->print_cr("Split-If"); } do_split_if(iff); diff --git a/src/hotspot/share/opto/split_if.cpp b/src/hotspot/share/opto/split_if.cpp index d94d4759173..7c51ae0f827 100644 --- a/src/hotspot/share/opto/split_if.cpp +++ b/src/hotspot/share/opto/split_if.cpp @@ -135,14 +135,6 @@ bool PhaseIdealLoop::split_up( Node *n, Node *blk1, Node *blk2 ) { } } - // Found some other Node; must clone it up -#ifndef PRODUCT - if( PrintOpto && VerifyLoopOptimizations ) { - tty->print("Cloning up: "); - n->dump(); - } -#endif - // ConvI2L may have type information on it which becomes invalid if // it moves up in the graph so change any clones so widen the type // to TypeLong::INT when pushing it up. @@ -308,12 +300,6 @@ bool PhaseIdealLoop::clone_cmp_down(Node* n, const Node* blk1, const Node* blk2) at_relevant_ctrl(cmov, blk1, blk2)))) { // Must clone down -#ifndef PRODUCT - if( PrintOpto && VerifyLoopOptimizations ) { - tty->print("Cloning down: "); - n->dump(); - } -#endif if (!n->is_FastLock()) { // Clone down any block-local BoolNode uses of this CmpNode for (DUIterator i = n->outs(); n->has_out(i); i++) { @@ -343,12 +329,6 @@ bool PhaseIdealLoop::clone_cmp_down(Node* n, const Node* blk1, const Node* blk2) } if (at_relevant_ctrl(bol, blk1, blk2)) { // Recursively sink any BoolNode -#ifndef PRODUCT - if( PrintOpto && VerifyLoopOptimizations ) { - tty->print("Cloning down: "); - bol->dump(); - } -#endif for (DUIterator j = bol->outs(); bol->has_out(j); j++) { Node* u = bol->out(j); // Uses are either IfNodes, CMoves, OpaqueNotNull, or Opaque*AssertionPredicate