Fix profile update in tree-ssa-isolate-paths.c (PR tree-optimization/82059).
commit52030270530b4efc96af144178ec3ec035c4bc4b
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2017 13:02:37 +0000 (1 13:02 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2017 13:02:37 +0000 (1 13:02 +0000)
tree1b23eb613e74a81e3afccc8d0276e8b176b0ee71
parentf1885171a83be7ce0d53e1708c47133108f481cc
Fix profile update in tree-ssa-isolate-paths.c (PR tree-optimization/82059).

2017-09-01  Martin Liska  <mliska@suse.cz>

PR tree-optimization/82059
* gimple-ssa-isolate-paths.c (isolate_path): Add profile and
frequency only when an edge is redirected.
2017-09-01  Martin Liska  <mliska@suse.cz>

PR tree-optimization/82059
* gcc.dg/tree-ssa/pr82059.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251591 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-isolate-paths.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr82059.c [new file with mode: 0644]