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 tuplification error in phiprop


Which leads to mismatching types in the generated PHI.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

2008-09-11  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.

Index: trunk/gcc/tree-ssa-phiprop.c
===================================================================
*** trunk.orig/gcc/tree-ssa-phiprop.c
--- trunk/gcc/tree-ssa-phiprop.c
*************** propagate_with_phi (basic_block bb, gimp
*** 247,253 ****
  	         || phivn[SSA_NAME_VERSION (arg)].value == NULL_TREE))
  	{
  	  gimple def_stmt = SSA_NAME_DEF_STMT (arg);
! 	  if (gimple_code (def_stmt) != GIMPLE_ASSIGN)
  	    return false;
  	  arg = gimple_assign_rhs1 (def_stmt);
  	}
--- 247,253 ----
  	         || phivn[SSA_NAME_VERSION (arg)].value == NULL_TREE))
  	{
  	  gimple def_stmt = SSA_NAME_DEF_STMT (arg);
! 	  if (!gimple_assign_single_p (def_stmt))
  	    return false;
  	  arg = gimple_assign_rhs1 (def_stmt);
  	}


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