aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/xtensa
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-10 18:56:59 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-10 18:56:59 +0000
commit2e3d041b1328f123e60244df9e78f9c30e73462c (patch)
tree87b78fda6482711d37131af066629bcf30356d58 /gcc/config/xtensa
parenta365fa0636886aeda83e57b84d837cfba13597fe (diff)
downloadgcc-2e3d041b1328f123e60244df9e78f9c30e73462c.zip
gcc-2e3d041b1328f123e60244df9e78f9c30e73462c.tar.gz
gcc-2e3d041b1328f123e60244df9e78f9c30e73462c.tar.bz2
Remove redundant fixed_regs tests
This patch removes redundant fixed_regs tests in things like: !fixed_regs[i] && !call_used_or_fixed_reg_p (i) 2019-09-10 Richard Sandiford <richard.sandiford@arm.com> gcc/ * 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. From-SVN: r275603
Diffstat (limited to 'gcc/config/xtensa')
-rw-r--r--gcc/config/xtensa/xtensa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 822c215..3c129fd 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2686,8 +2686,7 @@ xtensa_call_save_reg(int regno)
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