gcse.c (insert_insn_end_bb): Do not search for assignments to non-argumment registers...
authorJeffrey A Law <law@cygnus.com>
Fri, 11 May 2001 22:07:58 +0000 (22:07 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 11 May 2001 22:07:58 +0000 (16:07 -0600)
        * gcse.c (insert_insn_end_bb): Do not search for assignments to
        non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.

From-SVN: r41976

gcc/ChangeLog
gcc/gcse.c

index d5acce97fc1f40fda229d58b4f590110564a01d8..5c7364231685d34d83686c4e3eb238666f742cfd 100644 (file)
@@ -1,5 +1,8 @@
 Fri May 11 15:50:13 2001  Jeffrey A Law  (law@cygnus.com)
 
+       * gcse.c (insert_insn_end_bb): Do not search for assignments to
+       non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.
+
        * toplev.c (compile_file): Move comment for opening output
        file to just before the code that opens the output file.
 
index 07bdbf5e21dfe4b8e45bdcf1405b4c05822741c9..fa8ec0896996a10afe2548ed66c20732fc498629 100644 (file)
@@ -4787,6 +4787,11 @@ insert_insn_end_bb (expr, bb, pre)
            if (REGNO (XEXP (XEXP (p, 0), 0)) >= FIRST_PSEUDO_REGISTER)
              abort ();
 
+           /* We only care about registers which can hold function
+              arguments.  */
+           if (! FUNCTION_ARG_REGNO_P (REGNO (XEXP (XEXP (p, 0), 0))))
+             continue;
+
            SET_HARD_REG_BIT (parm_regs, REGNO (XEXP (XEXP (p, 0), 0)));
            nparm_regs++;
          }