Re: [PATCH v7 2/2] Don't move cold code out of loop by checking bb count

2021-12-01 Thread Richard Biener via Gcc-patches
uter "hotter" loop was to make the search for the optimal hoisting position O(1) for the common case (there is no hotter outer loop), allowing to do hot_loop = next_hot_loop[loop->num]; if (!hot_loop || loop_depth (hot_loop) < loop_depth (outermost_loop)) return outermost_

Re: Ping: [PATCH v7 2/2] Don't move cold code out of loop by checking bb count

2021-11-23 Thread Richard Biener via Gcc-patches
fixes are still pending. I'm thinking of requiring reliable_p () on the counts (but that will restrict this to FDO). Anyway, still on my list to look at - sorry for the delays. Richard. > > [PATCH v7 2/2] Don't move cold code out of loop by checking bb count > > https://

Ping: [PATCH v7 2/2] Don't move cold code out of loop by checking bb count

2021-11-23 Thread Xionghu Luo via Gcc-patches
Gentle ping and is this patch still suitable for stage 3? Thanks. [PATCH v7 2/2] Don't move cold code out of loop by checking bb count https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583911.html On 2021/11/10 11:08, Xionghu Luo via Gcc-patches wrote: > > > On 2

[PATCH v7 2/2] Don't move cold code out of loop by checking bb count

2021-11-09 Thread Xionghu Luo via Gcc-patches
) We should cache the next loop that is *colder* than loop instead of '_not_ colder than loop', and 'hotter_than_inner_loop' should be 'colder_than_inner_loop', then it makes sense if the coldest loop is outside of outermost loop, continue to find a colder loop between oute