This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r165646 - in /trunk/gcc: ChangeLog tree-cfg.c t...
- From: ebotcazou at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 18 Oct 2010 16:44:39 -0000
- Subject: r165646 - in /trunk/gcc: ChangeLog tree-cfg.c t...
Author: ebotcazou
Date: Mon Oct 18 16:44:38 2010
New Revision: 165646
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165646
Log:
* tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
* tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
rewrite modelled on gimple_purge_dead_eh_edges.
(gimple_purge_all_dead_abnormal_call_edges): New function.
* tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
directly instead of through gimple_purge_dead_abnormal_call_edges.
* tree-ssa-pre.c (need_ab_cleanup): New static variable.
(eliminate): Set bit in need_ab_cleanup for the basic block if we have
removed AB side-effects from one of its statements.
(init_pre): Initialize need_ab_cleanup.
(fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
are set in need_ab_cleanup. Free need_ab_cleanup afterward.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-cfg.c
trunk/gcc/tree-flow.h
trunk/gcc/tree-inline.c
trunk/gcc/tree-ssa-pre.c