- } else if(proj_keep_mode == 1) {
- if(is_Proj(node)) {
- if(get_Proj_pred(node) != proj_keep_node) {
- ir_fprintf(stderr, "Proj %+F not scheduled after its pred node in block %+F (%s)\n",
- node, block, get_irg_dump_name(env->irg));
- env->problem_found = 1;
- }
- } else if(be_is_Keep(node)) {
- ir_node *pred = get_irn_n(node, 0);
- if(skip_Proj_const(pred) != proj_keep_node) {
- ir_fprintf(stderr, "Proj %+F not scheduled after its pred node in block %+F (%s)\n",
- node, block, get_irg_dump_name(env->irg));
- env->problem_found = 1;
- } else {
- proj_keep_mode = 2;
- }
- } else {
- proj_keep_mode = 0;
- proj_keep_node = NULL;
- }
- } else if(proj_keep_mode == 2) {
- if(be_is_Keep(skip_Proj_const(node))) {
- if(get_irn_n(node, 0) != proj_keep_node) {
- ir_fprintf(stderr, "Proj %+F not scheduled after its pred node in block %+F (%s)\n",
- node, block, get_irg_dump_name(env->irg));
- env->problem_found = 1;
- }
- } else {
- proj_keep_mode = 0;
- proj_keep_node = NULL;
+ if (problem) {
+ ir_fprintf(stderr, "%+F not scheduled after its pred node in block %+F (%s)\n",
+ node, block, get_irg_dump_name(env->irg));
+ env->problem_found = 1;