From 28d1688dd1192559f19ab8cbda1f260f826b037c Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 8 Nov 2012 17:10:26 +0000 Subject: [PATCH] re PR rtl-optimization/54850 (FAIL: gcc.c-torture/execute/20041113-1.c execution, -Os) PR rtl-optimization/54850 * sched-deps.c (find_inc): Add all dependencies from the inc_insn to the mem_insn. From-SVN: r193332 --- gcc/ChangeLog | 6 ++++++ gcc/sched-deps.c | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b757503..9d50318 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-11-08 Bernd Schmidt + + 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 PR middle-end/48636 diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index b9ffb2d..78c5269 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; } -- 2.7.4