From: Richard Guenther Date: Sat, 28 Mar 2009 12:54:14 +0000 (+0000) Subject: re PR tree-optimization/38458 (copy-propagation doesn't handle cycles) X-Git-Tag: releases/gcc-4.5.0~7093 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17021bc8cbb9724e7cadb4984d11d5822e59df3a;p=thirdparty%2Fgcc.git re PR tree-optimization/38458 (copy-propagation doesn't handle cycles) 2009-03-28 Richard Guenther 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b746cdb319b..7e842a0c2630 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-03-28 Richard Guenther + + 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 PR tree-optimization/38180 diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 64c697a51968..8f060c2b5a20 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -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; }