diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-05 11:14:16 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-05 11:14:16 +0000 |
commit | 57337fec9b4a70c3f34aaaa65ae238206aa0e3db (patch) | |
tree | f146274ac306166de82576e3d78df124ff7791e3 /gcc/tree-ssa-loop-niter.c | |
parent | dd0b2a67efee1547f60c9b20d4c9cf4efa6355cf (diff) | |
download | ppe42-gcc-57337fec9b4a70c3f34aaaa65ae238206aa0e3db.tar.gz ppe42-gcc-57337fec9b4a70c3f34aaaa65ae238206aa0e3db.zip |
* tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
(maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
just_once_each_iteration_p; record estimated bound when loop has only one
likely exit; test just_once_each_iteration_p before IV canon itself.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 3fd34c14528..87b550cf5b4 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -1941,9 +1941,6 @@ find_loop_niter (struct loop *loop, edge *exit) *exit = NULL; FOR_EACH_VEC_ELT (edge, exits, i, ex) { - if (!just_once_each_iteration_p (loop, ex->src)) - continue; - if (!number_of_iterations_exit (loop, ex, &desc, false)) continue; @@ -3186,7 +3183,7 @@ discover_iteration_bound_by_body_walk (struct loop *loop) static void maybe_lower_iteration_bound (struct loop *loop) { - pointer_set_t *not_executed_last_iteration = pointer_set_create (); + pointer_set_t *not_executed_last_iteration = NULL; struct nb_iter_bound *elt; bool found_exit = false; VEC (basic_block, heap) *queue = NULL; |