[PR tree-optimization/68599] Avoid over-zealous optimization with -funsafe-loop-optim...
authorJeff Law <law@redhat.com>
Thu, 3 Dec 2015 15:40:08 +0000 (08:40 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 3 Dec 2015 15:40:08 +0000 (08:40 -0700)
commit46bd784bfb29e94841b7d2702277d77445a7a47f
tree9f82d6adb1a1a1767cf5c5002c5f241448ca67b7
parenta54a5997d9d4a981893984a6cc406f4865be7313
[PR tree-optimization/68599] Avoid over-zealous optimization with -funsafe-loop-optimizations

PR tree-optimization/68599
* loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
in call to loop_optimizer_init.
* loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
optimization to drop the assumptions/infinite notations if
the loop has a single exit.

From-SVN: r231231
gcc/ChangeLog
gcc/loop-init.c
gcc/loop-iv.c