re PR rtl-optimization/78120 (If conversion no longer performed)
authorBernd Schmidt <bernds@redhat.com>
Thu, 24 Nov 2016 12:22:16 +0000 (12:22 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 24 Nov 2016 12:22:16 +0000 (12:22 +0000)
commit2d8fec87b11ecfad75f8cae7910e60e1a61ec61b
tree0f02bf897ae9de96a80362cdfcc9efabee71f99e
parent334442f282a9d61723a0a0f299ba5ad7b00763b8
re PR rtl-optimization/78120 (If conversion no longer performed)

PR rtl-optimization/78120
* ifcvt.c (noce_conversion_profitable_p): Check original cost in all
cases, and additionally test against max_seq_cost for speed
optimization.
(noce_process_if_block): Compute an estimate for the original cost when
optimizing for speed, using the minimum of then and else block costs.

testsuite/
PR rtl-optimization/78120
* gcc.target/i386/pr78120.c: New test.

From-SVN: r242834
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr78120.c [new file with mode: 0644]