re PR tree-optimization/77445 (Performance drop after r239219 on coremark test)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 17 Jan 2017 12:49:41 +0000 (13:49 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Jan 2017 12:49:41 +0000 (12:49 +0000)
commitd4193b85ae9e6ddb2c4e563fcf622c81ba5b05c0
tree5297f57935ba851deb9924ed23484bff2cb445df
parent906e771270b3d969f4e6aa436d0dfa3e79dd5324
re PR tree-optimization/77445 (Performance drop after r239219 on coremark test)

PR middle-end/77445
* tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
correctly set frequency of oudgoing edge.
(duplicate_thread_path): Fix profile updating.
* gcc.dg/tree-ssa/pr77445-2.c: New testcase.
* gcc.dg/tree-ssa/pr77445.c: New testcase.

From-SVN: r244528
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr77445-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr77445.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c