hotspot/src/cpu/arm/vm/c1_LIRGenerator_arm.cpp
changeset 45632 e56cfcaea55c
parent 44738 11431bbc9549
equal deleted inserted replaced
45630:0aa7752bc392 45632:e56cfcaea55c
   921 #endif // AARCH64
   921 #endif // AARCH64
   922 
   922 
   923   } else {
   923   } else {
   924     left_arg->load_item();
   924     left_arg->load_item();
   925     if (x->op() == Bytecodes::_imul && right_arg->is_constant()) {
   925     if (x->op() == Bytecodes::_imul && right_arg->is_constant()) {
   926       int c = right_arg->get_jint_constant();
   926       jint c = right_arg->get_jint_constant();
   927       if (c > 0 && (is_power_of_2(c) || is_power_of_2(c - 1) || is_power_of_2(c + 1))) {
   927       if (c > 0 && c < max_jint && (is_power_of_2(c) || is_power_of_2(c - 1) || is_power_of_2(c + 1))) {
   928         right_arg->dont_load_item();
   928         right_arg->dont_load_item();
   929       } else {
   929       } else {
   930         right_arg->load_item();
   930         right_arg->load_item();
   931       }
   931       }
   932     } else {
   932     } else {