Fix profile update in tree-ssa-isolate-paths.c (PR tree-optimization/82059).
authorMartin Liska <mliska@suse.cz>
Fri, 1 Sep 2017 13:02:37 +0000 (15:02 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 1 Sep 2017 13:02:37 +0000 (13:02 +0000)
commit002618d87483cfb6481b0a044f113c9cf87d4ed6
tree1b23eb613e74a81e3afccc8d0276e8b176b0ee71
parenta2de90a45a9193cb19a5837110698fe59d6deb41
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.

From-SVN: r251591
gcc/ChangeLog
gcc/gimple-ssa-isolate-paths.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr82059.c [new file with mode: 0644]