Drop df_ from df_read_modify_subreg_p
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 30 Aug 2017 15:28:18 +0000 (15:28 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 15:28:18 +0000 (15:28 +0000)
commit33845ca96bdaa9510cfb041540a45c3e8be6c477
treebc69488d125557e352f5d02d91a2fdac5505faa3
parentbd4288c02b487cc8a9afcfa9c21bfe594a78e26d
Drop df_ from df_read_modify_subreg_p

...it's really a general RTL predicate, rather than something that depends
on the DF state.  Thanks to Segher for the suggestion.

2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* df.h (df_read_modify_subreg_p): Remove in favor of...
* rtl.h (read_modify_subreg_p): ...this new function.  Take a
const_rtx instead of an rtx.
* cprop.c (local_cprop_find_used_regs): Update accordingly.
* df-problems.c (df_word_lr_mark_ref): Likewise.
* ira-lives.c (mark_pseudo_reg_live): Likewise.
(mark_pseudo_reg_dead): Likewise.
(mark_ref_dead): Likewise.
* reginfo.c (init_subregs_of_mode): Likewise.
* sched-deps.c (sched_analyze_1): Likewise.
* df-scan.c (df_def_record_1): Likewise.
(df_uses_record): Likewise.
(df_read_modify_subreg_p): Remove in favor of...
* rtlanal.c (read_modify_subreg_p): ...this new function.  Take a
const_rtx instead of an rtx.

From-SVN: r251537
gcc/ChangeLog
gcc/cprop.c
gcc/df-problems.c
gcc/df-scan.c
gcc/df.h
gcc/ira-lives.c
gcc/reginfo.c
gcc/rtl.h
gcc/rtlanal.c
gcc/sched-deps.c