https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68212
--- Comment #7 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Pat Haugen from comment #4) > Author: pthaugen > Date: Fri Oct 14 17:10:18 2016 > New Revision: 241170 > > URL: https://gcc.gnu.org/viewcvs?rev=241170&root=gcc&view=rev > Log: > 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. Repeating Martin's question. Pat, is this PR fixed with your patch or is there more to do?