re PR tree-optimization/40087 (Number of iterations analysis wrong)
PR tree-optimization/40087 * tree-ssa-loop-niter.c (number_of_iterations_ne_max, number_of_iterations_ne): Rename never_infinite argument. (number_of_iterations_lt_to_ne, number_of_iterations_lt, number_of_iterations_le): Handle pointer-type ivs when exit_must_be_taken is false. (number_of_iterations_cond): Do not always assume that exit_must_be_taken if the control variable is a pointer. * gcc.dg/tree-ssa/pr40087.c: New test. From-SVN: r147727
Showing
gcc/testsuite/gcc.dg/tree-ssa/pr40087.c
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment