This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix tuplification error in phiprop
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 11 Sep 2008 23:49:23 +0200 (CEST)
- Subject: [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);
}