diff options
author | Richard Henderson <rth@cygnus.com> | 2000-08-28 20:59:00 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-08-28 20:59:00 -0700 |
commit | 38323cc3b8ff5ed2afd29bdc0f23d986ac046784 (patch) | |
tree | ddcdb69aa72e50e7fe0f35dec6d89a3e77164430 /gcc/reload.c | |
parent | 2ed885df7663984e9e415b56fc242e58b7b1319f (diff) | |
download | gcc-38323cc3b8ff5ed2afd29bdc0f23d986ac046784.zip gcc-38323cc3b8ff5ed2afd29bdc0f23d986ac046784.tar.gz gcc-38323cc3b8ff5ed2afd29bdc0f23d986ac046784.tar.bz2 |
reload.c (push_secondary_reload): Revert 2000-08-16 change.
* reload.c (push_secondary_reload): Revert 2000-08-16 change.
(find_reloads): Likewise.
* config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
(reload_inhi): Likewise.
From-SVN: r36028
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index e2eccf6..bf9c5ec 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -400,8 +400,6 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode, t_icode = icode; icode = CODE_FOR_nothing; } - - secondary_type = in_p ? RELOAD_FOR_INPUT : RELOAD_FOR_OUTPUT; } /* This case isn't valid, so fail. Reload is allowed to use the same @@ -3930,11 +3928,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) for (i = 0; i < n_reloads; i++) { if (rld[i].secondary_p - && rld[i].when_needed == operand_type[rld[i].opnum] - && (operand_reloadnum[rld[i].opnum] < 0 - || (rld[operand_reloadnum[rld[i].opnum]].secondary_in_icode == -1 - && rld[operand_reloadnum[rld[i].opnum]].secondary_out_icode == -1))) - rld[i].when_needed = address_type[rld[i].opnum]; + && rld[i].when_needed == operand_type[rld[i].opnum]) + rld[i].when_needed = address_type[rld[i].opnum]; if ((rld[i].when_needed == RELOAD_FOR_INPUT_ADDRESS || rld[i].when_needed == RELOAD_FOR_OUTPUT_ADDRESS @@ -3953,15 +3948,13 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) int secondary_in_reload = rld[i].secondary_in_reload; rld[secondary_in_reload].when_needed - = (rld[i].secondary_in_icode == -1 - ? RELOAD_FOR_OPADDR_ADDR - : RELOAD_FOR_OPERAND_ADDRESS); + = RELOAD_FOR_OPADDR_ADDR; /* If there's a tertiary reload we have to change it also. */ if (secondary_in_reload > 0 && rld[secondary_in_reload].secondary_in_reload != -1) rld[rld[secondary_in_reload].secondary_in_reload].when_needed - = rld[secondary_in_reload].when_needed; + = RELOAD_FOR_OPADDR_ADDR; } if ((rld[i].when_needed == RELOAD_FOR_OUTPUT_ADDRESS @@ -3971,15 +3964,13 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) int secondary_out_reload = rld[i].secondary_out_reload; rld[secondary_out_reload].when_needed - = (rld[i].secondary_out_icode == -1 - ? RELOAD_FOR_OPADDR_ADDR - : RELOAD_FOR_OPERAND_ADDRESS); + = RELOAD_FOR_OPADDR_ADDR; /* If there's a tertiary reload we have to change it also. */ if (secondary_out_reload && rld[secondary_out_reload].secondary_out_reload != -1) rld[rld[secondary_out_reload].secondary_out_reload].when_needed - = rld[secondary_out_reload].when_needed; + = RELOAD_FOR_OPADDR_ADDR; } if (rld[i].when_needed == RELOAD_FOR_INPADDR_ADDRESS |