2016-03-21 Richard Biener <rguenther@suse.de>
commit93505d2263b79f3e5967ae1fec082cf0843e610a
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2016 09:11:37 +0000 (21 09:11 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2016 09:11:37 +0000 (21 09:11 +0000)
tree3bc1f9fdebe2a92b99d3cd21c5a25bcbdd36041f
parent06fd19142eb32ca6a10a251ff4f6daab0540aa2e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234361 138bc75d-0d04-0410-961f-82ee72b054a4
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