reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with an earlyclobbered...
authorBernd Schmidt <bernds@cygnus.co.uk>
Wed, 13 Oct 1999 06:47:15 +0000 (06:47 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 13 Oct 1999 06:47:15 +0000 (00:47 -0600)
        * reload1.c (reload_reg_free_for_value_p):  RELOAD_OTHER reloads with
        an earlyclobbered output conflict with RELOAD_INPUT reloads.

From-SVN: r29935

gcc/ChangeLog
gcc/reload1.c

index 192bbf286a08c5dc2fd2e1df63944a1cbf6271f7..0d4af4ef79bee279660d5f827c0230e59796d830 100644 (file)
@@ -1,3 +1,8 @@
+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.
index caa7c1048ec0e0ea625c01b1637e7c8cfc690b4f..8727770af4f8257d25552d9c39aedce0e8a73f49 100644 (file)
@@ -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;