reload1.c (reload): Fix check for USEs to use code of pattern.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Tue, 12 May 1998 14:25:14 +0000 (14:25 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 12 May 1998 14:25:14 +0000 (15:25 +0100)
* reload1.c (reload): Fix check for USEs to use code of pattern.
(choose_reload_regs): Remove dead variable use_insn.

From-SVN: r19702

gcc/ChangeLog
gcc/reload1.c

index 4c0d9603ac4bd24290b2e296a90743ea09ee84f6..fcb71468b203db8b5a26fbdfd23f631437ac1b1a 100644 (file)
@@ -1,3 +1,8 @@
+Tue May 12 22:21:07 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * reload1.c (reload): Fix check for USEs to use code of pattern.
+       (choose_reload_regs): Remove dead variable use_insn.
+
 Tue May 12 14:04:49 1998  Jeffrey A Law  (law@cygnus.com)
 
        * pa.h (DBX_CONTIN_LENGTH): Reduce to 3000 bytes. 
@@ -531,6 +536,7 @@ Sat May  2 01:37:29 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
        Don't apply avoid_return_reg logic to USEs.
        When done, remove USEs that have a REG_EQUAL note on them.
        (emit_reload_insns): Handle case where we have inherited a MEM.
+       (choose_reload_regs): Likewise.
        (delete_output_reload): Don't use cannot_omit_stores.
 
 Thu Apr 30 18:59:03 1998  Jim Wilson  <wilson@cygnus.com>
index 65e5d65f26b459e47c73e18e113463c116be120b..fe0c7b241ba9d884dd45828cd9a3909626b12e1b 100644 (file)
@@ -2110,7 +2110,7 @@ reload (first, global, dumpfile)
       {
        rtx note, next;
 
-       if (GET_CODE (insn) == USE
+       if (GET_CODE (PATTERN (insn)) == USE
            && find_reg_note (insn, REG_EQUAL, NULL_RTX))
          {
            PUT_CODE (insn, NOTE);
@@ -5448,7 +5448,7 @@ choose_reload_regs (insn, avoid_return_reg)
            {
              register int regno = -1;
              enum machine_mode mode;
-             rtx in, use_insn = 0;
+             rtx in;
 
              if (reload_in[r] == 0)
                ;
@@ -5486,7 +5486,6 @@ choose_reload_regs (insn, avoid_return_reg)
                        {
                          regno = REGNO (XEXP (PATTERN (prev), 0));
                          mode = GET_MODE (reload_in[r]);
-                         use_insn = prev;
                        }
                    }
                }