diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2005-05-17 21:55:53 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2005-05-17 19:55:53 +0000 |
commit | 38965eb29c94c187538489f6874c5b54f98f2ed1 (patch) | |
tree | d5471dc3f0c17a518b2a28a858669d705b2a853d /gcc/tree-ssa-dom.c | |
parent | 6c878b231db4f5886d79c187083f0e0b65c8cf8c (diff) | |
download | gcc-38965eb29c94c187538489f6874c5b54f98f2ed1.zip gcc-38965eb29c94c187538489f6874c5b54f98f2ed1.tar.gz gcc-38965eb29c94c187538489f6874c5b54f98f2ed1.tar.bz2 |
tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the merged block.
* 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.
From-SVN: r99850
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index b827494..692dd70 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -404,6 +404,7 @@ tree_ssa_dominator_optimize (void) /* Clean up the CFG so that any forwarder blocks created by loop canonicalization are removed. */ cleanup_tree_cfg (); + calculate_dominance_info (CDI_DOMINATORS); /* If we prove certain blocks are unreachable, then we want to repeat the dominator optimization process as PHI nodes may |