re PR tree-optimization/90930 (Excessive memory consumption)
authorRichard Biener <rguenther@suse.de>
Fri, 21 Jun 2019 18:12:58 +0000 (18:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Jun 2019 18:12:58 +0000 (18:12 +0000)
2019-06-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90930
* tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
flag on new stmts to avoid re-processing them.

From-SVN: r272560

gcc/ChangeLog
gcc/tree-ssa-reassoc.c

index 14fb81a6de3e0b994bdf138dfd2fcc359b35a575..06abb6b6c87ec1960c678cdaa3620401ca020c21 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-21  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/90930
+       * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
+       flag on new stmts to avoid re-processing them.
+
 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
 
        PR c++/90875 - added -Wswitch-outside-range option
index 32bff979416665bfc7017e5af6432390180473be..7161c4c36c38012383debbe6d37ff872c2994475 100644 (file)
@@ -4812,6 +4812,7 @@ rewrite_expr_tree_parallel (gassign *stmt, int width,
       else
        {
          stmts[i] = build_and_add_sum (TREE_TYPE (last_rhs1), op1, op2, opcode);
+         gimple_set_visited (stmts[i], true);
        }
       if (dump_file && (dump_flags & TDF_DETAILS))
        {