aboutsummaryrefslogtreecommitdiff
path: root/gcc/ree.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-09-12 13:29:18 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-09-12 13:29:18 +0000
commita93072ca5fd144dd0711b6225473080db4196793 (patch)
tree7f7fb05fc63d20d6d575e97ac2981b83cbf9f9e8 /gcc/ree.c
parentad47462665eb1f923f3513cf52b42af22a76eb14 (diff)
downloadgcc-a93072ca5fd144dd0711b6225473080db4196793.zip
gcc-a93072ca5fd144dd0711b6225473080db4196793.tar.gz
gcc-a93072ca5fd144dd0711b6225473080db4196793.tar.bz2
Use hard_regno_nregs instead of HARD_REGNO_NREGS
This patch converts some places that use HARD_REGNO_NREGS to use hard_regno_nregs, in places where the initialisation has obviously already taken place. 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org> gcc/ * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Use hard_regno_nregs instead of HARD_REGNO_NREGS. (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. * config/c6x/c6x.c (c6x_expand_prologue): Likewise. (c6x_expand_epilogue): Likewise. * config/frv/frv.c (frv_alloc_temp_reg): Likewise. (frv_read_iacc_argument): Likewise. * config/sh/sh.c: Include regs.h. (sh_print_operand): Use hard_regno_nregs instead of HARD_REGNO_NREGS. (regs_used): Likewise. (output_stack_adjust): Likewise. * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Likewise. * expmed.c: Include regs.h. (store_bit_field_1): Use hard_regno_nregs instead of HARD_REGNO_NREGS. * ree.c: Include regs.h. (combine_reaching_defs): Use hard_regno_nregs instead of HARD_REGNO_NREGS. (add_removable_extension): Likewise. From-SVN: r252015
Diffstat (limited to 'gcc/ree.c')
-rw-r--r--gcc/ree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ree.c b/gcc/ree.c
index 9e04954..19225d5 100644
--- a/gcc/ree.c
+++ b/gcc/ree.c
@@ -226,6 +226,7 @@ along with GCC; see the file COPYING3. If not see
#include "memmodel.h"
#include "tm_p.h"
#include "optabs.h"
+#include "regs.h"
#include "emit-rtl.h"
#include "recog.h"
#include "cfgrtl.h"
@@ -823,7 +824,7 @@ combine_reaching_defs (ext_cand *cand, const_rtx set_pat, ext_state *state)
return false;
/* Ensure the number of hard registers of the copy match. */
- if (HARD_REGNO_NREGS (REGNO (src_reg), dst_mode) != REG_NREGS (src_reg))
+ if (hard_regno_nregs (REGNO (src_reg), dst_mode) != REG_NREGS (src_reg))
return false;
/* There's only one reaching def. */
@@ -1135,7 +1136,7 @@ add_removable_extension (const_rtx expr, rtx_insn *insn,
We allow this when the registers are different because the
code in combine_reaching_defs will handle that case correctly. */
- if (HARD_REGNO_NREGS (REGNO (dest), mode) != REG_NREGS (reg)
+ if (hard_regno_nregs (REGNO (dest), mode) != REG_NREGS (reg)
&& reg_overlap_mentioned_p (dest, reg))
return;