Commit 17021bc8 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/38458 (copy-propagation doesn't handle cycles)

2009-03-28  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38458
	* tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
	argument use the arguments copy-of value.

From-SVN: r145185
parent e8114fba
2009-03-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38458
* tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
argument use the arguments copy-of value.
2009-03-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38180
* tree-ssa-ccp.c (get_default_value): Simplify.
(likely_value): Likewise.
......
......@@ -892,7 +892,7 @@ copy_prop_visit_phi_node (gimple phi)
memory reference of all the other arguments. */
if (phi_val.value == NULL_TREE)
{
phi_val.value = arg;
phi_val.value = arg_val->value;
continue;
}
......
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