diff options
author | Po-Chun Chang <pchang9@cs.wisc.edu> | 2013-07-23 15:56:37 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2013-07-23 09:56:37 -0600 |
commit | c7b3b99f3101ba89ff6d5a5bb47388cfc59f17f6 (patch) | |
tree | 7eb216da80109b2f703503c7cf426f926601aa74 /gcc/reload.c | |
parent | c8fbf1fafa9adf574a2609e570e27bd0c234e527 (diff) | |
download | gcc-c7b3b99f3101ba89ff6d5a5bb47388cfc59f17f6.zip gcc-c7b3b99f3101ba89ff6d5a5bb47388cfc59f17f6.tar.gz gcc-c7b3b99f3101ba89ff6d5a5bb47388cfc59f17f6.tar.bz2 |
reload.c (find_reloads): Exit loop once we find this operand cannot be reloaded somehow for this alternative.
2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
* reload.c (find_reloads): Exit loop once we find this operand
cannot be reloaded somehow for this alternative.
* reload.c (find_reloads): Exit loop once we find a hard register.
* rtlanal.c (computed_jump_p): Exit loop once we find label
reference is used.
* i386.c (ix86_pad_returns): Exit loop after setting replace.
* cfgloopmanip.c (remove_path): Exit loop after setting
irred_invalidated.
* gensupport.c (subst_dup): Avoid loop if code is not
MATCH_DUP nor MATCH_OP_DUP.
From-SVN: r201174
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 8733ff3..b15f3b2 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -3324,7 +3324,10 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known, for (j = 0; j < i; j++) if (this_alternative_matches[j] == this_alternative_matches[i]) - badop = 1; + { + badop = 1; + break; + } break; case 'p': @@ -4640,7 +4643,10 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known, for (nri = 1; nri < nr; nri ++) if (! TEST_HARD_REG_BIT (reg_class_contents[rld[i].rclass], regno + nri)) - ok = 0; + { + ok = 0; + break; + } if (ok) rld[i].reg_rtx = dest; |