--- old/src/share/vm/opto/loopopts.cpp 2016-02-10 14:07:49.515254502 +0100 +++ new/src/share/vm/opto/loopopts.cpp 2016-02-10 14:07:49.219616074 +0100 @@ -47,6 +47,13 @@ return NULL; } + // Splitting range check CastIIs through a loop induction Phi can + // cause new Phis to be created that are left unrelated to the loop + // induction Phi and prevent optimizations (vectorization) + if (n->Opcode() == Op_CastII && n->as_CastII()->has_range_check()) { + return NULL; + } + int wins = 0; assert(!n->is_CFG(), ""); assert(region->is_Region(), "");