Re: [PATCH v2 2/4] Refactor loop_version

2021-10-31 Thread Xionghu Luo via Gcc-patches
On 2021/10/29 19:52, Richard Biener wrote: > On Wed, 27 Oct 2021, Xionghu Luo wrote: > >> loop_version currently does lv_adjust_loop_entry_edge >> before it loopifys the copy inserted on the header. This patch moves >> the condition generation later and thus we have four pieces to help >> unde

Re: [PATCH v2 2/4] Refactor loop_version

2021-10-29 Thread Richard Biener via Gcc-patches
On Wed, 27 Oct 2021, Xionghu Luo wrote: > loop_version currently does lv_adjust_loop_entry_edge > before it loopifys the copy inserted on the header. This patch moves > the condition generation later and thus we have four pieces to help > understanding of how the adjustment works: > 1) duplicati

[PATCH v2 2/4] Refactor loop_version

2021-10-26 Thread Xionghu Luo via Gcc-patches
loop_version currently does lv_adjust_loop_entry_edge before it loopifys the copy inserted on the header. This patch moves the condition generation later and thus we have four pieces to help understanding of how the adjustment works: 1) duplicating the loop on the entry edge. 2) loopify the dupl