http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45310
--- Comment #6 from Steven Bosscher <steven at gcc dot gnu.org> 2010-12-17
09:31:46 UTC ---
It seems to me that we should remove all traces of the deleted statements,
including EH info. Like so:
Index: tree-ssa-phiprop.c
===================================================================
--- tree-ssa-phiprop.c (revision 167956)
+++ tree-ssa-phiprop.c (working copy)
@@ -352,7 +352,7 @@ propagate_with_phi (basic_block bb, gimp
want to delete it here we also have to delete all intermediate
copies. */
gsi = gsi_for_stmt (use_stmt);
- gsi_remove (&gsi, false);
+ gsi_remove (&gsi, true);
phi_inserted = true;
}