aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-deps.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-08-30 15:28:18 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-08-30 15:28:18 +0000
commit33845ca96bdaa9510cfb041540a45c3e8be6c477 (patch)
treebc69488d125557e352f5d02d91a2fdac5505faa3 /gcc/sched-deps.c
parentbd4288c02b487cc8a9afcfa9c21bfe594a78e26d (diff)
downloadgcc-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/sched-deps.c')
-rw-r--r--gcc/sched-deps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index 4c459e6..844bf02 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -2419,7 +2419,7 @@ sched_analyze_1 (struct deps_desc *deps, rtx x, rtx_insn *insn)
{
if (GET_CODE (dest) == STRICT_LOW_PART
|| GET_CODE (dest) == ZERO_EXTRACT
- || df_read_modify_subreg_p (dest))
+ || read_modify_subreg_p (dest))
{
/* These both read and modify the result. We must handle
them as writes to get proper dependencies for following