summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-08 17:10:26 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-08 17:10:26 +0000
commitf00069eddbb3c4af3713bf125fe844b229d7fd98 (patch)
tree2736e653d0e778fc45c1e1610c64fc31611893ff /gcc
parent50ba0cad07a4bf488c48d401d04b8ced7f39f630 (diff)
downloadgcc-f00069eddbb3c4af3713bf125fe844b229d7fd98.tar.gz
PR rtl-optimization/54850
* sched-deps.c (find_inc): Add all dependencies from the inc_insn to the mem_insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/sched-deps.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b757503d8cb..9d50318e582 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-08 Bernd Schmidt <bernds@codesourcery.com>
+
+ PR rtl-optimization/54850
+ * sched-deps.c (find_inc): Add all dependencies from the inc_insn
+ to the mem_insn.
+
2012-11-08 Jan Hubicka <jh@suse.cz>
PR middle-end/48636
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index b9ffb2d6118..78c5269d603 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -4700,16 +4700,14 @@ find_inc (struct mem_inc_info *mii, bool backwards)
if (backwards)
{
FOR_EACH_DEP (mii->inc_insn, SD_LIST_BACK, sd_it, dep)
- if (modified_in_p (mii->inc_input, DEP_PRO (dep)))
- add_dependence_1 (mii->mem_insn, DEP_PRO (dep),
- REG_DEP_TRUE);
+ add_dependence_1 (mii->mem_insn, DEP_PRO (dep),
+ REG_DEP_TRUE);
}
else
{
FOR_EACH_DEP (mii->inc_insn, SD_LIST_FORW, sd_it, dep)
- if (modified_in_p (mii->inc_input, DEP_CON (dep)))
- add_dependence_1 (DEP_CON (dep), mii->mem_insn,
- REG_DEP_ANTI);
+ add_dependence_1 (DEP_CON (dep), mii->mem_insn,
+ REG_DEP_ANTI);
}
return true;
}