This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Allow merging blocks with phi nodes
- From: Richard Henderson <rth at redhat dot com>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 16 May 2005 20:59:51 -0700
- Subject: Re: [patch] Allow merging blocks with phi nodes
- References: <20050516191822.GB16082@atrey.karlin.mff.cuni.cz>
On Mon, May 16, 2005 at 09:18:22PM +0200, Zdenek Dvorak wrote:
> * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
> merged block.
> (replace_uses_by): New function.
> (tree_merge_blocks): Eliminate the phi nodes in the merged block.
> * tree-flow.h (fold_stmt_inplace): Declare.
> * tree-ssa-ccp.c (fold_stmt_inplace): New function.
> * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
> info after cfg cleanup.
Ok.
r~