Commit 35b81ea3 by Richard Sandiford Committed by Richard Sandiford

Remove global call sets: recog.c

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
parent 7187286e
2019-09-30 Richard Sandiford <richard.sandiford@arm.com> 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. * postreload-gcse.c: Include regs.h and function-abi.h.
(record_opr_changes): Use insn_callee_abi to get the ABI of the (record_opr_changes): Use insn_callee_abi to get the ABI of the
call insn target. Conservatively assume that partially-clobbered call insn target. Conservatively assume that partially-clobbered
......
...@@ -40,6 +40,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -40,6 +40,7 @@ along with GCC; see the file COPYING3. If not see
#include "cfgcleanup.h" #include "cfgcleanup.h"
#include "reload.h" #include "reload.h"
#include "tree-pass.h" #include "tree-pass.h"
#include "function-abi.h"
#ifndef STACK_POP_CODE #ifndef STACK_POP_CODE
#if STACK_GROWS_DOWNWARD #if STACK_GROWS_DOWNWARD
...@@ -3227,7 +3228,7 @@ peep2_find_free_register (int from, int to, const char *class_str, ...@@ -3227,7 +3228,7 @@ peep2_find_free_register (int from, int to, const char *class_str,
break; break;
} }
/* And that we don't create an extra save/restore. */ /* 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)) && ! df_regs_ever_live_p (regno + j))
{ {
success = 0; success = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment