aboutsummaryrefslogtreecommitdiff
path: root/gcc/shrink-wrap.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-30 16:21:44 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-30 16:21:44 +0000
commitb21a62b6246d3344cf74c79965523e4f59db7459 (patch)
tree82b86d77986fc724504be9b212889e4613e220d6 /gcc/shrink-wrap.c
parent497b699b93759c7f84527f49a9644c3ea692405d (diff)
downloadgcc-b21a62b6246d3344cf74c79965523e4f59db7459.zip
gcc-b21a62b6246d3344cf74c79965523e4f59db7459.tar.gz
gcc-b21a62b6246d3344cf74c79965523e4f59db7459.tar.bz2
Remove global call sets: shrink-wrap.c
This is a straight replacement of "calls we can clobber without saving them first". 2019-09-30 Richard Sandiford <richard.sandiford@arm.com> gcc/ * shrink-wrap.c: Include function-abi.h. (requires_stack_frame_p): Use crtl->abi to test whether the current function can use a register without saving it first. From-SVN: r276337
Diffstat (limited to 'gcc/shrink-wrap.c')
-rw-r--r--gcc/shrink-wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c
index 0186966..2dc92c3 100644
--- a/gcc/shrink-wrap.c
+++ b/gcc/shrink-wrap.c
@@ -43,7 +43,7 @@ along with GCC; see the file COPYING3. If not see
#include "regcprop.h"
#include "rtl-iter.h"
#include "valtrack.h"
-
+#include "function-abi.h"
/* Return true if INSN requires the stack frame to be set up.
PROLOGUE_USED contains the hard registers used in the function
@@ -76,7 +76,7 @@ requires_stack_frame_p (rtx_insn *insn, HARD_REG_SET prologue_used,
}
if (hard_reg_set_intersect_p (hardregs, prologue_used))
return true;
- hardregs &= ~call_used_or_fixed_regs;
+ hardregs &= ~crtl->abi->full_reg_clobbers ();
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
if (TEST_HARD_REG_BIT (hardregs, regno)
&& df_regs_ever_live_p (regno))