Make more use of regs_invalidated_by_call
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 10 Sep 2019 18:56:43 +0000 (18:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 10 Sep 2019 18:56:43 +0000 (18:56 +0000)
commitff18ad15259c8978f85344934b146ff7b9ee07e1
tree134f2e83c437f39cc3d6effd207d830dbfa7fcbe
parenta5647ae846f6765f12a359acba6a71fc12254fa8
Make more use of regs_invalidated_by_call

This cleans up a couple of places in which the previous patch had:

  call_used_or_fixed_regs & ~fixed_reg_set

In that context, regs_invalidated_by_call is IMO more obvious.

2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/frv/frv.c (frv_ifcvt_modify_tests): Use
regs_invalidated_by_call & ~fixed_reg_set instead of
call_used_or_fixed_regs & ~fixed_reg_set.
* config/sh/sh.c (output_stack_adjust): Likewise.

From-SVN: r275601
gcc/ChangeLog
gcc/config/frv/frv.c
gcc/config/sh/sh.c