hotspot/src/share/vm/opto/loopopts.cpp
changeset 35574 2b25eb88c8d6
parent 35545 a8f29dfd62b2
child 36065 4f0e0cb7b016
--- a/hotspot/src/share/vm/opto/loopopts.cpp	Mon Jan 18 08:34:14 2016 +0100
+++ b/hotspot/src/share/vm/opto/loopopts.cpp	Mon Jan 18 08:40:25 2016 +0100
@@ -25,6 +25,7 @@
 #include "precompiled.hpp"
 #include "memory/allocation.inline.hpp"
 #include "opto/addnode.hpp"
+#include "opto/castnode.hpp"
 #include "opto/connode.hpp"
 #include "opto/castnode.hpp"
 #include "opto/divnode.hpp"
@@ -997,6 +998,9 @@
 #ifdef _LP64
         if (m->Opcode() == Op_ConvI2L)
           return false;
+        if (m->is_CastII() && m->isa_CastII()->has_range_check()) {
+          return false;
+        }
 #endif
       }
     }