diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 15:28:18 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 15:28:18 +0000 |
commit | 33845ca96bdaa9510cfb041540a45c3e8be6c477 (patch) | |
tree | bc69488d125557e352f5d02d91a2fdac5505faa3 /gcc/df-problems.c | |
parent | bd4288c02b487cc8a9afcfa9c21bfe594a78e26d (diff) | |
download | gcc-33845ca96bdaa9510cfb041540a45c3e8be6c477.zip gcc-33845ca96bdaa9510cfb041540a45c3e8be6c477.tar.gz gcc-33845ca96bdaa9510cfb041540a45c3e8be6c477.tar.bz2 |
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
Diffstat (limited to 'gcc/df-problems.c')
-rw-r--r-- | gcc/df-problems.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/df-problems.c b/gcc/df-problems.c index 755aecf..4aafb43 100644 --- a/gcc/df-problems.c +++ b/gcc/df-problems.c @@ -2819,7 +2819,7 @@ df_word_lr_mark_ref (df_ref ref, bool is_set, regset live) return true; if (GET_CODE (orig_reg) == SUBREG - && df_read_modify_subreg_p (orig_reg)) + && read_modify_subreg_p (orig_reg)) { gcc_assert (DF_REF_FLAGS_IS_SET (ref, DF_REF_PARTIAL)); if (subreg_lowpart_p (orig_reg)) |