Drop df_ from df_read_modify_subreg_p
commit5a462df3950df5a21b032dd992b1fef7ab4fedeb
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 15:28:18 +0000 (30 15:28 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 15:28:18 +0000 (30 15:28 +0000)
treebc69488d125557e352f5d02d91a2fdac5505faa3
parent974534ab98b1d2514aa0c2ba69521cd1cc8e0467
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251537 138bc75d-0d04-0410-961f-82ee72b054a4
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