aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-09 17:59:41 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-09 17:59:41 +0000
commita85796511b2b7985f79331c996761f7a87cb8116 (patch)
tree4a203b9ce5ea6c1edbe21037576b86fa2d0b1107 /gcc/reg-stack.c
parent4897c5aaa7a5db4c1ece28ef66acb3d5e41787b3 (diff)
downloadgcc-a85796511b2b7985f79331c996761f7a87cb8116.zip
gcc-a85796511b2b7985f79331c996761f7a87cb8116.tar.gz
gcc-a85796511b2b7985f79331c996761f7a87cb8116.tar.bz2
Remove hard_reg_set_equal_p
Use "x == y" instead of "hard_reg_set_equal_p (x, y)". 2019-09-09 Richard Sandiford <richard.sandiford@arm.com> gcc/ * hard-reg-set.h (HARD_REG_SET::operator==): New function. (HARD_REG_SET::operator!=): Likewise. (hard_reg_set_equal_p): Delete. * cfgcleanup.c (old_insns_match_p): Use == instead of hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p. * ira-color.c (allocno_hard_regs_hasher::equal): Likewise. (add_allocno_hard_regs_to_forest): Likewise. (setup_allocno_available_regs_num): Likewise. * ira.c (setup_pressure_classes): Likewise. (setup_allocno_and_important_classes): Likewise. (setup_reg_class_relations): Likewise. * lra-lives.c (process_bb_lives): Likewise. * reg-stack.c (change_stack, convert_regs_1): Likewise. From-SVN: r275534
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index 19f020a..6edcc6f 100644
--- a/gcc/reg-stack.c
+++ b/gcc/reg-stack.c
@@ -2643,7 +2643,7 @@ change_stack (rtx_insn *insn, stack_ptr old, stack_ptr new_stack,
/* By now, the only difference should be the order of the stack,
not their depth or liveliness. */
- gcc_assert (hard_reg_set_equal_p (old->reg_set, new_stack->reg_set));
+ gcc_assert (old->reg_set == new_stack->reg_set);
gcc_assert (old->top == new_stack->top);
/* If the stack is not empty (new_stack->top != -1), loop here emitting
@@ -3158,8 +3158,7 @@ convert_regs_1 (basic_block block)
asms, we zapped the instruction itself, but that didn't produce the
same pattern of register kills as before. */
- gcc_assert (hard_reg_set_equal_p (regstack.reg_set, bi->out_reg_set)
- || any_malformed_asm);
+ gcc_assert (regstack.reg_set == bi->out_reg_set || any_malformed_asm);
bi->stack_out = regstack;
bi->done = true;