------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02
20:22 -------
Here is a simple patch to fix up the error in DSE:
Index: tree-ssa-dse.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dse.c,v
retrieving revision 2.15
diff -u -p -r2.15 tree-ssa-dse.c
--- tree-ssa-dse.c 18 Jan 2005 11:36:26 -0000 2.15
+++ tree-ssa-dse.c 2 Feb 2005 20:20:26 -0000
@@ -141,6 +141,8 @@ fix_phi_uses (tree phi, tree stmt)
{
tree v_may_def = DEF_FROM_PTR (def_p);
tree v_may_use = USE_FROM_PTR (use_p);
+ if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (v_may_def))
+ SSA_NAME_OCCURS_IN_ABNORMAL_PHI (v_may_use) = 1;
/* Find any uses in the PHI which match V_MAY_DEF and replace
them with the appropriate V_MAY_DEF_OP. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19768