]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove global call sets: recog.c
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 30 Sep 2019 16:21:10 +0000 (16:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 30 Sep 2019 16:21:10 +0000 (16:21 +0000)
2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* recog.c: Include function-abi.h.
(peep2_find_free_register): Use crtl->abi when deciding whether
a register is free for use after RA.

From-SVN: r276330

gcc/ChangeLog
gcc/recog.c

index a30c38d6ebc2de4d6cab6c82c88de92f66d81607..24f73f819f5a5f5da3361aade0fb5c9319ecd731 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * recog.c: Include function-abi.h.
+       (peep2_find_free_register): Use crtl->abi when deciding whether
+       a register is free for use after RA.
+
 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
 
        * postreload-gcse.c: Include regs.h and function-abi.h.
index f3e8a4c998b0cc85eb3ef0b0cdb3582254a2dd3c..aa31ffad1deceb11244e002b7e5b697724995c8e 100644 (file)
@@ -40,6 +40,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "cfgcleanup.h"
 #include "reload.h"
 #include "tree-pass.h"
+#include "function-abi.h"
 
 #ifndef STACK_POP_CODE
 #if STACK_GROWS_DOWNWARD
@@ -3227,7 +3228,7 @@ peep2_find_free_register (int from, int to, const char *class_str,
              break;
            }
          /* And that we don't create an extra save/restore.  */
-         if (! call_used_or_fixed_reg_p (regno + j)
+         if (! crtl->abi->clobbers_full_reg_p (regno + j)
              && ! df_regs_ever_live_p (regno + j))
            {
              success = 0;