re PR rtl-optimization/64081 (r217828 prevents RTL loop unroll)
authorIgor Zamyatin <igor.zamyatin@intel.com>
Mon, 19 Jan 2015 13:58:54 +0000 (13:58 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 19 Jan 2015 13:58:54 +0000 (13:58 +0000)
commitdfd3a76caecd5cea52ad04e0790165ba44742d59
treec1f846899315d6031ccc41dbf434feb410fedec2
parentff6a32a98ea33fcc69d7c342c9d91502ae1dcdd2
re PR rtl-optimization/64081 (r217828 prevents RTL loop unroll)

gcc/

PR rtl-optimization/64081
* loop-iv.c (def_pred_latch_p): New function.
(latch_dominating_def): Allow specific cases with non-single
definitions.
(iv_get_reaching_def): Likewise.
(check_complex_exit_p): New function.
(check_simple_exit): Use check_complex_exit_p to allow certain cases
with exits not executing on any iteration.

gcc/testsuite/

PR rtl-optimization/64081
* gcc.dg/pr64081.c: New test.

From-SVN: r219842
gcc/ChangeLog
gcc/loop-iv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64081.c [new file with mode: 0644]