+2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
+
+ * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
+ fixed_regs test.
+ * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
+ (bpf_expand_epilogue): Likewise.
+ * config/c6x/c6x.c (c6x_save_reg): Likewise.
+ * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
+ (ft32_expand_epilogue): Likewise.
+ * config/i386/i386.c (ix86_save_reg): Likewise.
+ * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
+ (moxie_expand_epilogue): Likewise.
+ * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
+ * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
+ * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
+
2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
* hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
/* One for every register we have to save. */
for (unsigned i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (! fixed_regs[i] && ! call_used_or_fixed_reg_p (i)
+ if (! call_used_or_fixed_reg_p (i)
&& df_regs_ever_live_p (i) && i != REG_RA)
sa_mask |= HOST_WIDE_INT_1U << i;
the current function. There is no need to round up, since the
registers are all 8 bytes wide. */
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
- if ((!fixed_regs[regno]
- && df_regs_ever_live_p (regno)
+ if ((df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno))
|| (cfun->calls_alloca
&& regno == STACK_POINTER_REGNUM))
right after the local variables. */
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
{
- if ((!fixed_regs[regno]
- && df_regs_ever_live_p (regno)
+ if ((df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno))
|| (cfun->calls_alloca
&& regno == STACK_POINTER_REGNUM))
/* Restore callee-saved hard registes from the stack. */
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
{
- if ((!fixed_regs[regno]
- && df_regs_ever_live_p (regno)
+ if ((df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno))
|| (cfun->calls_alloca
&& regno == STACK_POINTER_REGNUM))
c6x_save_reg (unsigned int regno)
{
return ((df_regs_ever_live_p (regno)
- && !call_used_or_fixed_reg_p (regno)
- && !fixed_regs[regno])
+ && !call_used_or_fixed_reg_p (regno))
|| (regno == RETURN_ADDR_REGNO
&& (df_regs_ever_live_p (regno)
|| !crtl->is_leaf))
{
for (regno = FIRST_PSEUDO_REGISTER; regno-- > 0;)
{
- if (!fixed_regs[regno] && !call_used_or_fixed_reg_p (regno)
+ if (!call_used_or_fixed_reg_p (regno)
&& df_regs_ever_live_p (regno))
{
rtx preg = gen_rtx_REG (Pmode, regno);
{
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
{
- if (!fixed_regs[regno] && df_regs_ever_live_p (regno)
+ if (df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno))
{
insn = emit_insn (gen_movsi_push (gen_rtx_REG (Pmode, regno)));
{
for (regno = FIRST_PSEUDO_REGISTER; regno-- > 0;)
{
- if (!fixed_regs[regno] && !call_used_or_fixed_reg_p (regno)
+ if (!call_used_or_fixed_reg_p (regno)
&& df_regs_ever_live_p (regno))
{
rtx preg = gen_rtx_REG (Pmode, regno);
return (df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno)
- && !fixed_regs[regno]
&& (regno != HARD_FRAME_POINTER_REGNUM || !frame_pointer_needed));
}
/* Save callee-saved registers. */
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
{
- if (!fixed_regs[regno]
- && df_regs_ever_live_p (regno)
+ if (df_regs_ever_live_p (regno)
&& !call_used_or_fixed_reg_p (regno))
{
insn = emit_insn (gen_movsi_push (gen_rtx_REG (Pmode, regno)));
emit_insn (gen_addsi3 (reg, reg, hard_frame_pointer_rtx));
}
for (regno = FIRST_PSEUDO_REGISTER; regno-- > 0; )
- if (!fixed_regs[regno] && !call_used_or_fixed_reg_p (regno)
+ if (!call_used_or_fixed_reg_p (regno)
&& df_regs_ever_live_p (regno))
{
rtx preg = gen_rtx_REG (Pmode, regno);
static bool
need_to_save_reg (unsigned int regno)
{
- if (!fixed_regs[regno] && !call_used_or_fixed_reg_p (regno)
+ if (!call_used_or_fixed_reg_p (regno)
&& df_regs_ever_live_p (regno))
return true;
static bool
need_to_save_reg (unsigned int regno)
{
- if (!fixed_regs[regno] && !call_used_or_fixed_reg_p (regno)
+ if (!call_used_or_fixed_reg_p (regno)
&& df_regs_ever_live_p (regno))
return true;
if (crtl->calls_eh_return && regno >= 2 && regno < 4)
return true;
- return !fixed_regs[regno] && !call_used_or_fixed_reg_p (regno) &&
- df_regs_ever_live_p (regno);
+ return !call_used_or_fixed_reg_p (regno) && df_regs_ever_live_p (regno);
}
/* Return the bytes needed to compute the frame pointer from the current