re PR tree-optimization/82381 (internal compiler error: qsort checking failed)
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Oct 2017 11:24:39 +0000 (13:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Oct 2017 11:24:39 +0000 (13:24 +0200)
commit33ff5dda9fe0dd67216ec38a6b1143d9adc3948a
tree6bfb4c141e8732d6cc4922f7dc62b3fde1c8511a
parentbb81a576f259256b38d46dd41d3bd5f5a36cfd6f
re PR tree-optimization/82381 (internal compiler error: qsort checking failed)

PR tree-optimization/82381
* tree-ssa-reassoc.c (sort_by_operand_rank): Don't check
stmt_to_insert nor wheather SSA_NAMEs are default defs.
Return 1 or -1 if one of bba and bbb is NULL. If bb_rank is equal,
fallthrough into reassoc_stmt_dominates_stmt_p.

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

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