summaryrefslogtreecommitdiff
path: root/gcc/omega.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-22 15:20:11 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-22 15:20:11 +0000
commit73bd65ab6128e7cd125c5baac6c82495792e8651 (patch)
tree4674bc8f90b7739914eac2c3df90ba7086e62181 /gcc/omega.c
parent4d334484737ffb311326855bd084b9344467c0a4 (diff)
downloadgcc-73bd65ab6128e7cd125c5baac6c82495792e8651.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201132 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omega.c')
-rw-r--r--gcc/omega.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/gcc/omega.c b/gcc/omega.c
index 8829a71a91d..2443ecb0307 100644
--- a/gcc/omega.c
+++ b/gcc/omega.c
@@ -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--)
if (pb->geqs[e].color == omega_red)
- red_found = 1;
+ {
+ red_found = 1;
+ break;
+ }
if (!red_found)
{
@@ -4853,7 +4856,10 @@ omega_problem_has_red_equations (omega_pb pb)
for (e = pb->num_geqs - 1; e >= 0; e--)
if (pb->geqs[e].color == omega_red)
- result = true;
+ {
+ result = true;
+ break;
+ }
if (!result)
return false;
@@ -4906,7 +4912,10 @@ omega_problem_has_red_equations (omega_pb pb)
for (e = pb->num_geqs - 1; e >= 0; e--)
if (pb->geqs[e].color == omega_red)
- result = true;
+ {
+ result = true;
+ break;
+ }
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)
for (e = pb->num_subs - 1; e >= 0; e--)
if (pb->subs[e].coef[i] != 0)
- coupled = true;
+ {
+ coupled = true;
+ break;
+ }
for (e = pb->num_eqs - 1; e >= 0; e--)
if (pb->eqs[e].coef[i] != 0)