Commit 279072c8 by Zdenek Dvorak Committed by Zdenek Dvorak

re PR tree-optimization/23157 (incorrect sharing of tree nodes regression)

	PR tree-optimization/23157
	* tree-scalar-evolution.c (scev_const_prop): Unshare trees
	before emitting them.

From-SVN: r102704
parent 53054e77
2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/23157
* tree-scalar-evolution.c (scev_const_prop): Unshare trees
before emitting them.
2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR tree-optimization/19899 PR tree-optimization/19899
......
...@@ -2719,6 +2719,7 @@ scev_const_prop (void) ...@@ -2719,6 +2719,7 @@ scev_const_prop (void)
in loop into account. */ in loop into account. */
if (force_expr_to_var_cost (def) >= target_spill_cost) if (force_expr_to_var_cost (def) >= target_spill_cost)
continue; continue;
def = unshare_expr (def);
if (is_gimple_val (def)) if (is_gimple_val (def))
stmts = NULL_TREE; stmts = NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment