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
This commit is contained in:
Zdenek Dvorak 2005-08-03 20:39:10 +02:00 committed by Zdenek Dvorak
parent 53054e7782
commit 279072c846
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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>
PR tree-optimization/19899

View File

@ -2719,6 +2719,7 @@ scev_const_prop (void)
in loop into account. */
if (force_expr_to_var_cost (def) >= target_spill_cost)
continue;
def = unshare_expr (def);
if (is_gimple_val (def))
stmts = NULL_TREE;