Re: [PATCH] loop: Fix profile updates after unrolling [PR102385]

2021-10-08 Thread Richard Biener via Gcc-patches
On Tue, Oct 5, 2021 at 3:39 PM Richard Sandiford via Gcc-patches wrote: > > In g:62acc72a957b5614 I'd stopped the unroller from using > an epilogue loop in cases where the iteration count was > known to be a multiple of the unroll factor. The epilogue > and non-epilogue cases still shared this (p

[PATCH] loop: Fix profile updates after unrolling [PR102385]

2021-10-05 Thread Richard Sandiford via Gcc-patches
In g:62acc72a957b5614 I'd stopped the unroller from using an epilogue loop in cases where the iteration count was known to be a multiple of the unroll factor. The epilogue and non-epilogue cases still shared this (preexisting) code to update the edge frequencies: basic_block exit_bb = single_pr