From 8d5558c518a8812276aee50cca3da8ca5cce3091 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 21 Jun 2019 18:12:58 +0000 Subject: [PATCH] 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: r272560 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-reassoc.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14fb81a6de3..06abb6b6c87 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-21 Matthew Beliveau PR c++/90875 - added -Wswitch-outside-range option diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 32bff979416..7161c4c36c3 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)) { -- 2.30.2