@@ -884,8 +884,6 @@ bool IfNode::fold_compares_helper(ProjNode* proj, ProjNode* success, ProjNode* f
884
884
hi_type->_hi == max_jint && lo_type->_lo == min_jint && lo_test != BoolTest::ne) {
885
885
assert ((dom_bool->_test .is_less () && !proj->_con ) ||
886
886
(dom_bool->_test .is_greater () && proj->_con ), " incorrect test" );
887
- // this test was canonicalized
888
- assert (this_bool->_test .is_less () && fail->_con , " incorrect test" );
889
887
890
888
// this_bool = <
891
889
// dom_bool = >= (proj = True) or dom_bool = < (proj = False)
@@ -922,9 +920,11 @@ bool IfNode::fold_compares_helper(ProjNode* proj, ProjNode* success, ProjNode* f
922
920
return false ;
923
921
}
924
922
} else {
925
- assert (false , " unhandled hi_test: %d" , hi_test);
923
+ assert (igvn-> _worklist . member ( in ( 1 )) && in ( 1 )-> Value (igvn) != igvn-> type ( in ( 1 )) , " unhandled hi_test: %d" , hi_test);
926
924
return false ;
927
925
}
926
+ // this test was canonicalized
927
+ assert (this_bool->_test .is_less () && fail->_con , " incorrect test" );
928
928
} else if (lo_type != NULL && hi_type != NULL && lo_type->_lo > hi_type->_hi &&
929
929
lo_type->_hi == max_jint && hi_type->_lo == min_jint && lo_test != BoolTest::ne) {
930
930
@@ -951,8 +951,6 @@ bool IfNode::fold_compares_helper(ProjNode* proj, ProjNode* success, ProjNode* f
951
951
952
952
assert ((dom_bool->_test .is_less () && proj->_con ) ||
953
953
(dom_bool->_test .is_greater () && !proj->_con ), " incorrect test" );
954
- // this test was canonicalized
955
- assert (this_bool->_test .is_less () && !fail->_con , " incorrect test" );
956
954
957
955
cond = (hi_test == BoolTest::le || hi_test == BoolTest::gt) ? BoolTest::gt : BoolTest::ge;
958
956
@@ -980,9 +978,11 @@ bool IfNode::fold_compares_helper(ProjNode* proj, ProjNode* success, ProjNode* f
980
978
return false ;
981
979
}
982
980
} else {
983
- assert (false , " unhandled lo_test: %d" , lo_test);
981
+ assert (igvn-> _worklist . member ( in ( 1 )) && in ( 1 )-> Value (igvn) != igvn-> type ( in ( 1 )) , " unhandled lo_test: %d" , lo_test);
984
982
return false ;
985
983
}
984
+ // this test was canonicalized
985
+ assert (this_bool->_test .is_less () && !fail->_con , " incorrect test" );
986
986
} else {
987
987
const TypeInt* failtype = filtered_int_type (igvn, n, proj);
988
988
if (failtype != NULL ) {
0 commit comments