ifcvt: improve cost estimation (PR 87047)
authorAlexander Monakov <amonakov@ispras.ru>
Wed, 2 Oct 2019 15:37:12 +0000 (18:37 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Wed, 2 Oct 2019 15:37:12 +0000 (18:37 +0300)
commit1764d63bd98c6c08e993f5c39dfa0247985b1642
tree8afecb03e7053f721f894c1ca4ab7fa0bc95928e
parenta264ea9a5bbbbf78ea8c53b675584d1f218e20db
ifcvt: improve cost estimation (PR 87047)

PR rtl-optimization/87047
* ifcvt.c (average_cost): New static function.  Use it...
(noce_process_if_block): ... here.

testsuite/
* gcc.dg/pr87047.c: New test.

From-SVN: r276466
gcc/ChangeLog
gcc/ifcvt.c
gcc/ifcvt.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87047.c [new file with mode: 0644]