re PR tree-optimization/84648 (Missed optimization : loop not removed.)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Thu, 15 Nov 2018 03:44:49 +0000 (03:44 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 15 Nov 2018 03:44:49 +0000 (03:44 +0000)
commita81e2c6240655f60a49c16e0d8bbfd2ba40bba51
treee7cce19325fbea4e794b3677a829d5c0e940b7f2
parentd8fdf280ab8e6f12746f23717cc0cf92871561d1
re PR tree-optimization/84648 (Missed optimization : loop not removed.)

PR tree-optimization/84648
* tree-ssa-loop-niter.c (adjust_cond_for_loop_until_wrap): New.
(number_of_iterations_cond): Adjust exit cond for loop-until-wrap case
by calling adjust_cond_for_loop_until_wrap.

gcc/testsuite
* gcc.dg/tree-ssa/pr84648.c: New test.
* gcc.dg/pr68317.c: Add warning check on overflow.

From-SVN: r266171
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68317.c
gcc/testsuite/gcc.dg/tree-ssa/pr84648.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c