summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-08 18:09:41 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-08 18:09:41 +0000
commita9ef98778deaf3b83ca1349ad09e7b15ce908158 (patch)
treeeb195a552c62fbc24735e6506d9aa729f6806b75 /gcc/cfgloop.h
parent514d377a3dcb7aeb49113b23d70fc87f6304a30e (diff)
downloadgcc-a9ef98778deaf3b83ca1349ad09e7b15ce908158.tar.gz
* loop-unswitch.c (unswitch_single_loop): Use
estimated_loop_iterations_int to prevent unswitching when loop is known to not roll. * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault when SCEV is not initialized. (max_loop_iterations): Likewise. * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use estimated_loop_iterations_int to prevent unswithcing when loop is known to not roll. * tree-scalar-evolution.c (scev_initialized_p): New function. * tree-scalar-evolution.h (scev_initialized_p): Likewise. * loop-unroll.c (decide_peel_once_rolling): Use max_loop_iterations_int. (unroll_loop_constant_iterations): Update nb_iterations_upper_bound and nb_iterations_estimate. (decide_unroll_runtime_iterations): Use estimated_loop_iterations or max_loop_iterations; (unroll_loop_runtime_iterations): fix profile updating. (decide_peel_simple): Use estimated_loop_iterations and max_loop_iterations. (decide_unroll_stupid): Use estimated_loop_iterations ad max_loop_iterations. * loop-doloop.c (doloop_modify): Use max_loop_iterations_int. (doloop_optimize): Likewise. * loop-iv.c (iv_number_of_iterations): Use record_niter_bound. (find_simple_exit): Likewise. * cfgloop.h (struct niter_desc): Remove niter_max. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192219 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r--gcc/cfgloop.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index e0a370f32bf..9d7b784174d 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -386,9 +386,6 @@ struct niter_desc
/* Number of iterations if constant. */
unsigned HOST_WIDEST_INT niter;
- /* Upper bound on the number of iterations. */
- unsigned HOST_WIDEST_INT niter_max;
-
/* Assumptions under that the rest of the information is valid. */
rtx assumptions;