This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix copyprop fallout
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Mar 2009 17:01:10 +0100 (CET)
- Subject: [PATCH] Fix copyprop fallout
The copyprop patch merge from a-i branch caused
gcc.dg/vect/vect-strided-same-dr.c to ICE. This is because we now
pretended that the PHI was undefined when it was not. Fixed
as follows.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2009-03-28 Richard Guenther <rguenther@suse.de>
* tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
the PHIs value undefined.
Index: gcc/tree-ssa-copy.c
===================================================================
*** gcc/tree-ssa-copy.c (revision 145188)
--- gcc/tree-ssa-copy.c (working copy)
*************** copy_prop_visit_phi_node (gimple phi)
*** 892,898 ****
memory reference of all the other arguments. */
if (phi_val.value == NULL_TREE)
{
! phi_val.value = arg_val->value;
continue;
}
--- 892,898 ----
memory reference of all the other arguments. */
if (phi_val.value == NULL_TREE)
{
! phi_val.value = arg_val->value ? arg_val->value : arg;
continue;
}