< prev index next >

src/hotspot/share/opto/loopnode.cpp

Print this page
*** 3889,11 ***
                (n->in(0)->Opcode() == Op_IfFalse &&
                 (1.0 - iff->as_If()->_prob) >= 0.01) ||
                (iff->as_If()->_prob >= 0.01) )
              innermost->_has_call = 1;
          }
!       } else if( n->is_Allocate() && n->as_Allocate()->_is_scalar_replaceable ) {
          // Disable loop optimizations if the loop has a scalar replaceable
          // allocation. This disabling may cause a potential performance lost
          // if the allocation is not eliminated for some reason.
          innermost->_allow_optimizations = false;
          innermost->_has_call = 1; // = true
--- 3889,11 ---
                (n->in(0)->Opcode() == Op_IfFalse &&
                 (1.0 - iff->as_If()->_prob) >= 0.01) ||
                (iff->as_If()->_prob >= 0.01) )
              innermost->_has_call = 1;
          }
!       } else if( n->is_Allocate() && (n->as_Allocate()->_is_scalar_replaceable || n->as_Allocate()->_is_stack_allocateable) ) {
          // Disable loop optimizations if the loop has a scalar replaceable
          // allocation. This disabling may cause a potential performance lost
          // if the allocation is not eliminated for some reason.
          innermost->_allow_optimizations = false;
          innermost->_has_call = 1; // = true
< prev index next >