diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-09 17:59:29 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-09 17:59:29 +0000 |
commit | 4897c5aaa7a5db4c1ece28ef66acb3d5e41787b3 (patch) | |
tree | fa56ee920dccfe14c219e9c7f229ee84154e46c0 /gcc/reload1.c | |
parent | d15e5131845e2a68513230a624839ef5abcda690 (diff) | |
download | gcc-4897c5aaa7a5db4c1ece28ef66acb3d5e41787b3.zip gcc-4897c5aaa7a5db4c1ece28ef66acb3d5e41787b3.tar.gz gcc-4897c5aaa7a5db4c1ece28ef66acb3d5e41787b3.tar.bz2 |
Remove IOR_COMPL_HARD_REG_SET
Use "x |= ~y" instead of "IOR_COMPL_HARD_REG_SET (x, y)", or just
"x | ~y" if the result is a temporary.
2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
* config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
Use "|~" instead of IOR_COMPL_HARD_REG_SET.
* config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
Likewise.
* ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
* ira.c (setup_reg_renumber): Likewise.
* lra-assigns.c (find_hard_regno_for_1): Likewise.
* regrename.c (regrename_find_superclass): Likewise.
* reload1.c (find_reg): Likewise.
From-SVN: r275533
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 90cee06..3c23e6e 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1823,8 +1823,9 @@ find_reg (class insn_chain *chain, int order) static int regno_pseudo_regs[FIRST_PSEUDO_REGISTER]; static int best_regno_pseudo_regs[FIRST_PSEUDO_REGISTER]; - not_usable = bad_spill_regs | bad_spill_regs_global; - IOR_COMPL_HARD_REG_SET (not_usable, reg_class_contents[rl->rclass]); + not_usable = (bad_spill_regs + | bad_spill_regs_global + | ~reg_class_contents[rl->rclass]); CLEAR_HARD_REG_SET (used_by_other_reload); for (k = 0; k < order; k++) |