Commit 57850c85 by Bernd Schmidt Committed by Jeff Law

reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with an…

reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with an earlyclobbered output conflict with RELOAD_INPUT...

        * reload1.c (reload_reg_free_for_value_p):  RELOAD_OTHER reloads with
        an earlyclobbered output conflict with RELOAD_INPUT reloads.

From-SVN: r29935
parent c7847bc8
Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
an earlyclobbered output conflict with RELOAD_INPUT reloads.
Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
......
......@@ -5258,7 +5258,7 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
if (! rld[i].in || ! rtx_equal_p (rld[i].in, value)
|| rld[i].out || out)
{
int time2;
int j, time2;
switch (rld[i].when_needed)
{
case RELOAD_FOR_OTHER_ADDRESS:
......@@ -5337,6 +5337,11 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
if (! rld[i].in || rtx_equal_p (rld[i].in, value))
{
time2 = MAX_RECOG_OPERANDS * 4 + 4;
/* Earlyclobbered outputs must conflict with inputs. */
for (j = 0; j < n_earlyclobbers; j++)
if (reload_out[i] == reload_earlyclobbers[j])
time2 = MAX_RECOG_OPERANDS * 4 + 3;
break;
}
time2 = 1;
......
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