revert: re PR rtl-optimization/57268 (c nested loops hang compiler in sched-deps.c)
authorDinar Temirbulatov <dinar@kugelworks.com>
Sat, 1 Jun 2013 10:18:03 +0000 (10:18 +0000)
committerDinar Temirbulatov <dinar@gcc.gnu.org>
Sat, 1 Jun 2013 10:18:03 +0000 (14:18 +0400)
2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>

        Revert
        PR rtl-optimization/57268
        * sched-deps.c (sched_analyze_2): Flush dependence lists if
        the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.

From-SVN: r199576

gcc/ChangeLog
gcc/sched-deps.c

index cf1d13d40989ea5e5ffc4629a9675bc69440f52a..1da3462ed4028c7d3f406db08ed6ce757ae2869f 100644 (file)
@@ -1,3 +1,10 @@
+2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
+
+       Revert
+       PR rtl-optimization/57268
+       * sched-deps.c (sched_analyze_2): Flush dependence lists if
+       the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
+
 2013-06-01  Tobias Burnus  <burnus@net-b.de>
 
        Partially reverted:
index 190fd4eb4bf19ee9b2cebe2f92a306aa599c17f6..c7ef1d8e67e977729d402a1b22844cedb1fb17f4 100644 (file)
@@ -2690,14 +2690,8 @@ sched_analyze_2 (struct deps_desc *deps, rtx x, rtx insn)
 
        /* Always add these dependencies to pending_reads, since
           this insn may be followed by a write.  */
-       if (!deps->readonly)
-         {
-           if ((deps->pending_read_list_length
-                + deps->pending_write_list_length)
-               > MAX_PENDING_LIST_LENGTH)
-             flush_pending_lists (deps, insn, true, true);
-           add_insn_mem_dependence (deps, true, insn, x);
-       }
+        if (!deps->readonly)
+          add_insn_mem_dependence (deps, true, insn, x);
 
        sched_analyze_2 (deps, XEXP (x, 0), insn);