aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-10 18:56:43 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-10 18:56:43 +0000
commitff18ad15259c8978f85344934b146ff7b9ee07e1 (patch)
tree134f2e83c437f39cc3d6effd207d830dbfa7fcbe /gcc/config/sh
parenta5647ae846f6765f12a359acba6a71fc12254fa8 (diff)
downloadgcc-ff18ad15259c8978f85344934b146ff7b9ee07e1.zip
gcc-ff18ad15259c8978f85344934b146ff7b9ee07e1.tar.gz
gcc-ff18ad15259c8978f85344934b146ff7b9ee07e1.tar.bz2
Make more use of regs_invalidated_by_call
This cleans up a couple of places in which the previous patch had: call_used_or_fixed_regs & ~fixed_reg_set In that context, regs_invalidated_by_call is IMO more obvious. 2019-09-10 Richard Sandiford <richard.sandiford@arm.com> gcc/ * config/frv/frv.c (frv_ifcvt_modify_tests): Use regs_invalidated_by_call & ~fixed_reg_set instead of call_used_or_fixed_regs & ~fixed_reg_set. * config/sh/sh.c (output_stack_adjust): Likewise. From-SVN: r275601
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index fd23fb0..ab3a78f 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -6707,7 +6707,7 @@ output_stack_adjust (int size, rtx reg, int epilogue_p,
temp = -1;
if (temp < 0 && ! current_function_interrupt && epilogue_p >= 0)
{
- HARD_REG_SET temps = (call_used_or_fixed_regs
+ HARD_REG_SET temps = (regs_invalidated_by_call
& ~fixed_reg_set
& savable_regs);
if (epilogue_p > 0)