re PR rtl-optimization/54850 (FAIL: gcc.c-torture/execute/20041113-1.c execution...
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 8 Nov 2012 17:10:26 +0000 (17:10 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 8 Nov 2012 17:10:26 +0000 (17:10 +0000)
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
gcc/sched-deps.c

index b757503d8cb9b592a32032e84bbf4055e46f36ba..9d50318e582c41ec5716f2c7dc63202c5d69e51d 100644 (file)
@@ -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
index b9ffb2d61189e84c0a7f64bc10448f4bede2a719..78c5269d6037eb4ab20b0f9115b1e47c3138aa6c 100644 (file)
@@ -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;
        }