aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
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 /gcc/tree-ssa-copy.c
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
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c2
1 files changed, 1 insertions, 1 deletions
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;
}