diff options
author | Richard Guenther <rguenther@suse.de> | 2009-03-28 12:54:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-03-28 12:54:14 +0000 |
commit | 17021bc8cbb9724e7cadb4984d11d5822e59df3a (patch) | |
tree | 28aea26dbd75be61ded0d734f6a3fdfbf6c54c03 | |
parent | e8114fbacc9e1f4702e754288d39913d4c8f3f35 (diff) | |
download | gcc-17021bc8cbb9724e7cadb4984d11d5822e59df3a.zip gcc-17021bc8cbb9724e7cadb4984d11d5822e59df3a.tar.gz gcc-17021bc8cbb9724e7cadb4984d11d5822e59df3a.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-copy.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b746cd..7e842a0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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. diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 64c697a..8f060c2 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; } |