hotspot/src/share/vm/opto/loopUnswitch.cpp
changeset 34174 4db2fb26dc49
parent 34164 a9e6034d7707
child 37287 c2660335bf81
equal deleted inserted replaced
34173:01bb07d23a5b 34174:4db2fb26dc49
   359   if (!_active) {
   359   if (!_active) {
   360     return false;
   360     return false;
   361   }
   361   }
   362 
   362 
   363   if(!_lpt->_head->is_CountedLoop()) {
   363   if(!_lpt->_head->is_CountedLoop()) {
   364     NOT_PRODUCT(if(TraceLoopOpts) {tty->print_cr("CountedLoopReserveKit::create_reserve: %d not counted loop", _lpt->_head->_idx);})
   364     if (TraceLoopOpts) {
       
   365       tty->print_cr("CountedLoopReserveKit::create_reserve: %d not counted loop", _lpt->_head->_idx);
       
   366     }
   365     return false;
   367     return false;
   366   }
   368   }
   367   CountedLoopNode *cl = _lpt->_head->as_CountedLoop();
   369   CountedLoopNode *cl = _lpt->_head->as_CountedLoop();
   368   if (!cl->is_valid_counted_loop()) {
   370   if (!cl->is_valid_counted_loop()) {
   369     NOT_PRODUCT(if(TraceLoopOpts) {tty->print_cr("CountedLoopReserveKit::create_reserve: %d not valid counted loop", cl->_idx);})
   371     if (TraceLoopOpts) {
       
   372       tty->print_cr("CountedLoopReserveKit::create_reserve: %d not valid counted loop", cl->_idx);
       
   373     }
   370     return false; // skip malformed counted loop
   374     return false; // skip malformed counted loop
   371   }
   375   }
   372   if (!cl->is_main_loop()) {
   376   if (!cl->is_main_loop()) {
   373     NOT_PRODUCT(if(TraceLoopOpts) {tty->print_cr("CountedLoopReserveKit::create_reserve: %d not main loop", cl->_idx);})
   377     if (TraceLoopOpts) {
       
   378       tty->print_cr("CountedLoopReserveKit::create_reserve: %d not main loop", cl->_idx);
       
   379     }
   374     return false; // skip normal, pre, and post loops
   380     return false; // skip normal, pre, and post loops
   375   }
   381   }
   376 
   382 
   377   _lp = _lpt->_head->as_Loop();
   383   _lp = _lpt->_head->as_Loop();
   378   _lp_reserved = _phase->create_reserve_version_of_loop(_lpt, this);
   384   _lp_reserved = _phase->create_reserve_version_of_loop(_lpt, this);