]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-threadbackward.cc
re PR tree-optimization/71550 (wrong code at -O3 on x86_64-linux-gnu)
authorJeff Law <law@redhat.com>
Mon, 3 Oct 2016 19:28:24 +0000 (13:28 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 3 Oct 2016 19:28:24 +0000 (13:28 -0600)
commit0a4e5cf3122f8237d840b34d0515151b61ffeb5e
tree8f5ba8447a97730e48ec8aeadb75ec9d3eb338d0
parent95ccd17c610e928f1b8089192d89456dd0dc891f
re PR tree-optimization/71550 (wrong code at -O3 on x86_64-linux-gnu)

PR tree-optimization/71550
PR tree-optimization/71403
* tree-ssa-threadbackward.c: Include tree-vectorizer.h
(profitable_jump_thread_path): Also return boolean indicating if
the realized path will create an irreducible loop.
Remove loop depth tests from 71403.
(fsm_find_control_statement_thread_paths): Remove loop depth tests
from 71403.  If threading will create an irreducible loop, then
throw away loop iteration and related information.

PR tree-optimization/71550
PR tree-optimization/71403
* gcc.c-torture/execute/pr71550.c: New test.

From-SVN: r240727
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr71550.c [new file with mode: 0644]
gcc/tree-ssa-threadbackward.c