aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-03-28 12:54:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-03-28 12:54:14 +0000
commit17021bc8cbb9724e7cadb4984d11d5822e59df3a (patch)
tree28aea26dbd75be61ded0d734f6a3fdfbf6c54c03
parente8114fbacc9e1f4702e754288d39913d4c8f3f35 (diff)
downloadgcc-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/ChangeLog6
-rw-r--r--gcc/tree-ssa-copy.c2
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;
}