From 4399a7a81d5dd2c92439fef095924a8bd95bc28f Mon Sep 17 00:00:00 2001 From: law Date: Wed, 13 Oct 1999 06:47:15 +0000 Subject: [PATCH] * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with an earlyclobbered output conflict with RELOAD_INPUT reloads. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29935 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 192bbf2..0d4af4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 13 00:45:04 1999 Bernd Schmidt + + * 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 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE. diff --git a/gcc/reload1.c b/gcc/reload1.c index caa7c10..8727770 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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; -- 2.7.4