comparison src/share/vm/opto/loopopts.cpp @ 23799:535618ab1c04

6675699: need comprehensive fix for unconstrained ConvI2L with narrowed type Summary: Emit CastII to make narrow ConvI2L dependent on the corresponding range check. Reviewed-by: kvn, roland
author thartmann
date Wed, 27 Jan 2016 09:02:51 +0100
parents b6585ac86988
children 5c3f2bcc3b94
comparison
equal deleted inserted replaced
23571:16f7b676725a 23799:535618ab1c04
770 if (m->is_FastLock()) 770 if (m->is_FastLock())
771 return false; 771 return false;
772 #ifdef _LP64 772 #ifdef _LP64
773 if (m->Opcode() == Op_ConvI2L) 773 if (m->Opcode() == Op_ConvI2L)
774 return false; 774 return false;
775 if (m->is_CastII() && m->isa_CastII()->has_range_check()) {
776 return false;
777 }
775 #endif 778 #endif
776 } 779 }
777 } 780 }
778 } 781 }
779 return true; 782 return true;