]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/70288 (ICE with -O1 -fno-tree-dominator-opts)
authorRichard Biener <rguenther@suse.de>
Mon, 21 Mar 2016 09:11:37 +0000 (09:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Mar 2016 09:11:37 +0000 (09:11 +0000)
commit56bbfaf62ca1d53c8016e0d9e00394a5f23c047a
tree3bc1f9fdebe2a92b99d3cd21c5a25bcbdd36041f
parent3eee49ed0d613c47ddfec85eeb7c0430ae6d2ec5
re PR tree-optimization/70288 (ICE with -O1 -fno-tree-dominator-opts)

2016-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70288
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
we do not estimate unsimplified all-constant conditionals or
switches as optimized away.

* gcc.dg/torture/pr70288-1.c: New testcase.
* gcc.dg/torture/pr70288-2.c: Likewise.

From-SVN: r234361
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr70288-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr70288-2.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivcanon.c