src/share/vm/opto/loopTransform.cpp

changeset 2899
3b1d58916d5f
parent 2880
f879eafd5835
child 2915
38569792a45a
equal deleted inserted replaced
2898:e2a92dd0d3d2 2899:3b1d58916d5f
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

mercurial