re PR tree-optimization/91355 (optimized code does not call destructor while unwindin...
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Nov 2019 10:59:27 +0000 (11:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Nov 2019 10:59:27 +0000 (11:59 +0100)
commit01a0fba62602d008fe838aafa0ee5b1b35369e06
tree753363427bb25a48beabf8bf11526e1020f99d4e
parent141793d5e91cac12a59ed3a4a8d432824ea753ee
re PR tree-optimization/91355 (optimized code does not call destructor while unwinding after exception)

PR tree-optimization/91355
* tree-ssa-sink.c (select_best_block): Use >= rather than >
for early_bb scaled count with best_bb count comparison.

* g++.dg/torture/pr91355.C: New test.

From-SVN: r278548
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr91355.C [new file with mode: 0644]
gcc/tree-ssa-sink.c