src/share/vm/opto/loopTransform.cpp

changeset 9610
f43f77de876a
parent 8777
09d0d56ca735
child 9637
eef07cd490d4
child 9739
bf9503046dd4
     1.1 --- a/src/share/vm/opto/loopTransform.cpp	Wed Jan 30 17:32:47 2019 +0000
     1.2 +++ b/src/share/vm/opto/loopTransform.cpp	Fri Feb 01 10:47:30 2019 +0100
     1.3 @@ -1310,8 +1310,8 @@
     1.4            limit = new (C) Opaque2Node( C, limit );
     1.5            register_new_node( limit, opaq_ctrl );
     1.6          }
     1.7 -        if (stride_con > 0 && ((limit_type->_lo - stride_con) < limit_type->_lo) ||
     1.8 -                   stride_con < 0 && ((limit_type->_hi - stride_con) > limit_type->_hi)) {
     1.9 +        if (stride_con > 0 && (java_subtract(limit_type->_lo, stride_con) < limit_type->_lo) ||
    1.10 +            stride_con < 0 && (java_subtract(limit_type->_hi, stride_con) > limit_type->_hi)) {
    1.11            // No underflow.
    1.12            new_limit = new (C) SubINode(limit, stride);
    1.13          } else {

mercurial