aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-11-02 17:34:52 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2012-11-02 16:34:52 +0000
commitf2a1b46987236a338f9cd96fa42b64af9ffb5a80 (patch)
treef422408bb685a50d53e449a1a6c13e851119cfe9 /gcc/predict.c
parent7ee840b6bf0ec12da6506591c10ceb1e78af532a (diff)
downloadgcc-f2a1b46987236a338f9cd96fa42b64af9ffb5a80.zip
gcc-f2a1b46987236a338f9cd96fa42b64af9ffb5a80.tar.gz
gcc-f2a1b46987236a338f9cd96fa42b64af9ffb5a80.tar.bz2
re PR tree-optimization/55079 (false positive -Warray-bounds (also seen at -O3 bootstrap))
PR middle-end/55079 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update MAX field if NITER was folded to contant. (record_estimate): Sanity check. * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New function. (remove_redundant_iv_test): New function. (loops_to_unloop, loops_to_unloop_nunroll): New static vars. (unloop_loops): Break out from ... (try_unroll_loop_completely): ... here; Pass in MAXITER; use remove_exits_and_undefined_stmts; do not unloop. (canonicalize_loop_induction_variables): Compute MAXITER; use remove_redundant_iv_test; remove loop_close_ssa_invalidated and irred_invalidated arguments. (canonicalize_induction_variables): Compute fresh bound estimates; unloop; walk from innermost. (tree_unroll_loops_completely): Likewise. * gcc.dg/tree-ssa/cunroll-10.c: New testcase. * gcc.dg/tree-ssa/cunroll-9.c: New testcase. From-SVN: r193098
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions