1.1 --- a/src/share/vm/opto/subnode.cpp Thu Mar 13 10:18:59 2014 -0700 1.2 +++ b/src/share/vm/opto/subnode.cpp Thu Jan 23 12:08:28 2014 +0100 1.3 @@ -1126,11 +1126,15 @@ 1.4 Node *cmp = in(1); 1.5 if( !cmp->is_Sub() ) return NULL; 1.6 int cop = cmp->Opcode(); 1.7 - if( cop == Op_FastLock || cop == Op_FastUnlock || cop == Op_FlagsProj) return NULL; 1.8 + if( cop == Op_FastLock || cop == Op_FastUnlock) return NULL; 1.9 Node *cmp1 = cmp->in(1); 1.10 Node *cmp2 = cmp->in(2); 1.11 if( !cmp1 ) return NULL; 1.12 1.13 + if (_test._test == BoolTest::overflow || _test._test == BoolTest::no_overflow) { 1.14 + return NULL; 1.15 + } 1.16 + 1.17 // Constant on left? 1.18 Node *con = cmp1; 1.19 uint op2 = cmp2->Opcode();