hotspot/src/share/vm/opto/loopTransform.cpp
changeset 9634 985153f94e98
parent 9449 b2c921e1f46d
child 9941 f2365fbd62f4
equal deleted inserted replaced
9633:92a7a2841a16 9634:985153f94e98
  1228         // no underflow if limit is constant.
  1228         // no underflow if limit is constant.
  1229         new_limit = _igvn.intcon(limit->get_int() - stride_con);
  1229         new_limit = _igvn.intcon(limit->get_int() - stride_con);
  1230         set_ctrl(new_limit, C->root());
  1230         set_ctrl(new_limit, C->root());
  1231       } else {
  1231       } else {
  1232         // Limit is not constant.
  1232         // Limit is not constant.
  1233         {
  1233         if (loop_head->unrolled_count() == 1) { // only for first unroll
  1234           // Separate limit by Opaque node in case it is an incremented
  1234           // Separate limit by Opaque node in case it is an incremented
  1235           // variable from previous loop to avoid using pre-incremented
  1235           // variable from previous loop to avoid using pre-incremented
  1236           // value which could increase register pressure.
  1236           // value which could increase register pressure.
  1237           // Otherwise reorg_offsets() optimization will create a separate
  1237           // Otherwise reorg_offsets() optimization will create a separate
  1238           // Opaque node for each use of trip-counter and as result
  1238           // Opaque node for each use of trip-counter and as result