Commit 67e61fe7 by Bernd Schmidt Committed by Bernd Schmidt

Small reload cleanups

From-SVN: r30193
parent 35f86a50
Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* reload.c (find_reloads): Compute mode and nregs fields of all
reloads.
* reload1.c (calculate_needs_all_insns): Simplify a bit.
(calculate_needs): Use precomputed mode/nregs values.
(allocate_reload_reg): Likewise.
Break out two...
(failed_reload, set_reload_reg): ... new functions.
(choose_reload_regs_init): New function, mostly broken out from...
(choose_reload_regs): ... here. Lose all the save_xxx nonsense.
Also lose one #if 0 block.
Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
* Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
......
......@@ -4174,6 +4174,18 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
}
}
/* Compute reload_mode and reload_nregs. */
for (i = 0; i < n_reloads; i++)
{
rld[i].mode
= (rld[i].inmode == VOIDmode
|| (GET_MODE_SIZE (rld[i].outmode)
> GET_MODE_SIZE (rld[i].inmode)))
? rld[i].outmode : rld[i].inmode;
rld[i].nregs = CLASS_MAX_NREGS (rld[i].class, rld[i].mode);
}
return retval;
}
......
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