re PR rtl-optimization/68212 (Loop unroller breaks basic block frequencies)
authorPat Haugen <pthaugen@us.ibm.com>
Fri, 14 Oct 2016 17:10:18 +0000 (17:10 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Fri, 14 Oct 2016 17:10:18 +0000 (17:10 +0000)
commitd4919e65cae926b962425ff3d8c71a668f63c209
tree01bb186ac1edba171f8b6bac72910c624b865727
parenta4744f620f32b6b859a39c6876f5e21b52b1af4b
re PR rtl-optimization/68212 (Loop unroller breaks basic block frequencies)

PR rtl-optimization/68212
* cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
frequency when computing scale factor for peeled copies.
* loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
values for switch/peel blocks/edges.

From-SVN: r241170
gcc/ChangeLog
gcc/cfgloopmanip.c
gcc/loop-unroll.c