From b87f0847c27e2d5c6e431ef34b9c26bb40409d86 Mon Sep 17 00:00:00 2001 From: davidxl Date: Fri, 27 Mar 2009 17:18:58 +0000 Subject: Fix for PR39548 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145118 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/tree-ssa-copy.c') diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 654ba950228..64c697a5196 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -908,7 +908,8 @@ copy_prop_visit_phi_node (gimple phi) } } - if (phi_val.value && set_copy_of_val (lhs, phi_val.value)) + if (phi_val.value && may_propagate_copy (lhs, phi_val.value) + && set_copy_of_val (lhs, phi_val.value)) retval = (phi_val.value != lhs) ? SSA_PROP_INTERESTING : SSA_PROP_VARYING; else retval = SSA_PROP_NOT_INTERESTING; -- cgit v1.2.1