summaryrefslogtreecommitdiff
path: root/gcc/ira-int.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-07-01 08:57:59 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-07-01 08:57:59 +0000
commit73bb8fe9e915cf3219f16afdc61c308c08aa7659 (patch)
tree3a497a04ea90a9a9c47a00635c78894df955213f /gcc/ira-int.h
parentc53930bb4e409a256b9887640d7cd217d0e01b07 (diff)
Use alternative_mask for add_insn_allocno_copies
add_insn_allocno_copies and its subroutines used HARD_REG_SET to represent a bitmask of alternatives. There's not really any connection between the number of registers and the maximum number of alternatives, so this patch uses alternative_mask instead (which wasn't around when this code was added). This is just a minor clean-up making way for later patches. 2019-07-01 Richard Sandiford <richard.sandiford@arm.com> gcc/ * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use alternative_mask instead of HARD_REG_SET to represent a bitmask of alternatives. * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise. * ira-conflicts.c (add_insn_allocno_copies): Likewise. From-SVN: r272847
Diffstat (limited to 'gcc/ira-int.h')
-rw-r--r--gcc/ira-int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h
index 3c7fe4e6450..1ea35f7e364 100644
--- a/gcc/ira-int.h
+++ b/gcc/ira-int.h
@@ -963,8 +963,8 @@ extern void ira_print_disposition (FILE *);
extern void ira_debug_disposition (void);
extern void ira_debug_allocno_classes (void);
extern void ira_init_register_move_cost (machine_mode);
-extern void ira_setup_alts (rtx_insn *insn, HARD_REG_SET &alts);
-extern int ira_get_dup_out_num (int op_num, HARD_REG_SET &alts);
+extern alternative_mask ira_setup_alts (rtx_insn *);
+extern int ira_get_dup_out_num (int, alternative_mask);
/* ira-build.c */