From: Richard Biener Date: Tue, 25 Jun 2019 07:30:44 +0000 (+0000) Subject: re PR tree-optimization/90930 (Excessive memory consumption) X-Git-Tag: releases/gcc-9.2.0~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4024c1f12011d9d7262576f30f8b8562f746d6;p=thirdparty%2Fgcc.git re PR tree-optimization/90930 (Excessive memory consumption) 2019-06-21 Richard Biener 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: r272636 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 284b85f99d15..b2534affc4b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-06-21 Richard Biener + + 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-24 Richard Biener PR tree-optimization/90930 diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 32bff9794166..7161c4c36c38 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -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)) {