re PR tree-optimization/77901 (ICE in tree-sse-reassoc,c:2881)
authorJakub Jelinek <jakub@redhat.com>
Sun, 9 Oct 2016 11:18:53 +0000 (13:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 9 Oct 2016 11:18:53 +0000 (13:18 +0200)
commit4dfb8a2a60a582b0a1cab65f34d706cf961c9d20
tree575c2ff14712a649731088bf4d9e47de753bc32b
parent67b974787c1e77ebebb4f36cdf09ac11a5690f43
re PR tree-optimization/77901 (ICE in tree-sse-reassoc,c:2881)

PR tree-optimization/77901
* tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
if ranges[i].exp is SSA_NAME when looking for >= and only when
ranges[i].exp is NULL or SSA_NAME when looking for the other
comparison.

* gcc.c-torture/compile/pr77901.c: New test.

From-SVN: r240899
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr77901.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c