http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-03 15:18:55 UTC --- Author: jakub Date: Wed Nov 3 15:18:50 2010 New Revision: 166251 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166251 Log: PR tree-optimization/46009 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call cond_if_else_store_replacement if bb1 and bb2 have the same single successor. (cond_store_replacement): Use gimple_assign_single_p, don't check if rhs is SSA_NAME or invariant. Call release_defs for assign. (cond_if_else_store_replacement): New function. * gcc.dg/vect/pr46009.c: New function. Added: trunk/gcc/testsuite/gcc.dg/vect/pr46009.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-phiopt.c