This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
  	}
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]