Use alternative_mask for add_insn_allocno_copies
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 1 Jul 2019 08:57:59 +0000 (08:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 1 Jul 2019 08:57:59 +0000 (08:57 +0000)
commit73bb8fe9e915cf3219f16afdc61c308c08aa7659
tree3a497a04ea90a9a9c47a00635c78894df955213f
parentc53930bb4e409a256b9887640d7cd217d0e01b07
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
gcc/ChangeLog
gcc/ira-conflicts.c
gcc/ira-int.h
gcc/ira.c