Commit ae382ebd by Po-Chun Chang Committed by Jeff Law

df-problems.c (can_move_insns_across): Exit loop once we find a non-fixed, non-global register.

        * df-problems.c (can_move_insns_across): Exit loop once we
        find a non-fixed, non-global register.

        * ipa-pure-const.c (propagate_nothrow): Exit loop after
        setting can_throw.

        * omega.c (omega_eliminate_red): Break after setting red_found.
        (omega_problem_has_red_equations): Similarly after setting found.
        (omega_query_variable): Similarly after setting coupled.

        * trans-decl.c (gfc_build_dummy_array_decl): Exit loop after
        setting PACKED_PARTIAL.

From-SVN: r201132
parent 9b6e6981
2013-07-22 Chang <pchang9@cs.wisc.edu>
* df-problems.c (can_move_insns_across): Exit loop once we
find a non-fixed, non-global register.
* ipa-pure-const.c (propagate_nothrow): Exit loop after
setting can_throw.
* omega.c (omega_eliminate_red): Break after setting red_found.
(omega_problem_has_red_equations): Similarly after setting found.
(omega_query_variable): Similarly after setting coupled.
2013-07-22 Marek Polacek <polacek@redhat.com> 2013-07-22 Marek Polacek <polacek@redhat.com>
* gimplify.c: Don't include gimple.h twice. * gimplify.c: Don't include gimple.h twice.
......
...@@ -4040,7 +4040,10 @@ can_move_insns_across (rtx from, rtx to, rtx across_from, rtx across_to, ...@@ -4040,7 +4040,10 @@ can_move_insns_across (rtx from, rtx to, rtx across_from, rtx across_to,
if (i < FIRST_PSEUDO_REGISTER if (i < FIRST_PSEUDO_REGISTER
&& ! fixed_regs[i] && ! fixed_regs[i]
&& ! global_regs[i]) && ! global_regs[i])
fail = 1; {
fail = 1;
break;
}
} }
} }
......
2013-07-22 Chang <pchang9@cs.wisc.edu>
* trans-decl.c (gfc_build_dummy_array_decl): Exit loop after
setting PACKED_PARTIAL.
2013-07-22 Tobias Burnus <burnus@net-b.de> 2013-07-22 Tobias Burnus <burnus@net-b.de>
* trans-array.c (gfc_array_allocate): Correct memory-leak patch. * trans-array.c (gfc_array_allocate): Correct memory-leak patch.
......
...@@ -975,7 +975,10 @@ gfc_build_dummy_array_decl (gfc_symbol * sym, tree dummy) ...@@ -975,7 +975,10 @@ gfc_build_dummy_array_decl (gfc_symbol * sym, tree dummy)
&& as->lower[n] && as->lower[n]
&& as->upper[n]->expr_type == EXPR_CONSTANT && as->upper[n]->expr_type == EXPR_CONSTANT
&& as->lower[n]->expr_type == EXPR_CONSTANT)) && as->lower[n]->expr_type == EXPR_CONSTANT))
packed = PACKED_PARTIAL; {
packed = PACKED_PARTIAL;
break;
}
} }
} }
else else
......
...@@ -1431,7 +1431,10 @@ propagate_nothrow (void) ...@@ -1431,7 +1431,10 @@ propagate_nothrow (void)
} }
for (ie = node->indirect_calls; ie; ie = ie->next_callee) for (ie = node->indirect_calls; ie; ie = ie->next_callee)
if (ie->can_throw_external) if (ie->can_throw_external)
can_throw = true; {
can_throw = true;
break;
}
w_info = (struct ipa_dfs_info *) w->symbol.aux; w_info = (struct ipa_dfs_info *) w->symbol.aux;
w = w_info->next_cycle; w = w_info->next_cycle;
} }
......
...@@ -2591,7 +2591,10 @@ omega_eliminate_red (omega_pb pb, bool eliminate_all) ...@@ -2591,7 +2591,10 @@ omega_eliminate_red (omega_pb pb, bool eliminate_all)
for (red_found = 0, e = pb->num_geqs - 1; e >= 0; e--) for (red_found = 0, e = pb->num_geqs - 1; e >= 0; e--)
if (pb->geqs[e].color == omega_red) if (pb->geqs[e].color == omega_red)
red_found = 1; {
red_found = 1;
break;
}
if (!red_found) if (!red_found)
{ {
...@@ -4853,7 +4856,10 @@ omega_problem_has_red_equations (omega_pb pb) ...@@ -4853,7 +4856,10 @@ omega_problem_has_red_equations (omega_pb pb)
for (e = pb->num_geqs - 1; e >= 0; e--) for (e = pb->num_geqs - 1; e >= 0; e--)
if (pb->geqs[e].color == omega_red) if (pb->geqs[e].color == omega_red)
result = true; {
result = true;
break;
}
if (!result) if (!result)
return false; return false;
...@@ -4906,7 +4912,10 @@ omega_problem_has_red_equations (omega_pb pb) ...@@ -4906,7 +4912,10 @@ omega_problem_has_red_equations (omega_pb pb)
for (e = pb->num_geqs - 1; e >= 0; e--) for (e = pb->num_geqs - 1; e >= 0; e--)
if (pb->geqs[e].color == omega_red) if (pb->geqs[e].color == omega_red)
result = true; {
result = true;
break;
}
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file && (dump_flags & TDF_DETAILS))
{ {
...@@ -5251,7 +5260,10 @@ omega_query_variable (omega_pb pb, int i, int *lower_bound, int *upper_bound) ...@@ -5251,7 +5260,10 @@ omega_query_variable (omega_pb pb, int i, int *lower_bound, int *upper_bound)
for (e = pb->num_subs - 1; e >= 0; e--) for (e = pb->num_subs - 1; e >= 0; e--)
if (pb->subs[e].coef[i] != 0) if (pb->subs[e].coef[i] != 0)
coupled = true; {
coupled = true;
break;
}
for (e = pb->num_eqs - 1; e >= 0; e--) for (e = pb->num_eqs - 1; e >= 0; e--)
if (pb->eqs[e].coef[i] != 0) if (pb->eqs[e].coef[i] != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment