diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-06 09:04:00 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-06 09:04:00 +0000 |
commit | e3bdfed62abe1c163b93162e53a377b21b5658dc (patch) | |
tree | 06f32bf636037d2caf5f7c51678ee35c661cafa5 /gcc/tree-ssa-loop.c | |
parent | a81b065a47a134e66937060f7ae14f1ae939b7b5 (diff) | |
download | gcc-e3bdfed62abe1c163b93162e53a377b21b5658dc.zip gcc-e3bdfed62abe1c163b93162e53a377b21b5658dc.tar.gz gcc-e3bdfed62abe1c163b93162e53a377b21b5658dc.tar.bz2 |
re PR tree-optimization/43934 (LIM should handle PHI nodes)
2010-05-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43934
* tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
(stmt_cost): Likewise.
(extract_true_false_args_from_phi): New helper.
(determine_max_movement): For PHI nodes verify we can hoist them
and compute their cost.
(determine_invariantness_stmt): Handle PHI nodes.
(move_computations_stmt): Likewise. Hoist PHI nodes in
if-converted form using COND_EXPRs.
(move_computations): Return TODO_cleanup_cfg if we hoisted PHI
nodes.
(tree_ssa_lim): Likewise.
* tree-flow.h (tree_ssa_lim): Adjust prototype.
* tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
* gcc.dg/tree-ssa/ssa-lim-9.c: New testcase.
From-SVN: r159099
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index fbf8d59..d1b1e8e 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -109,8 +109,7 @@ tree_ssa_loop_im (void) if (number_of_loops () <= 1) return 0; - tree_ssa_lim (); - return 0; + return tree_ssa_lim (); } static bool |