Re: [PATCH] vect: Move suggested_unroll_factor applying [PR105940]

2022-06-13 Thread Kewen.Lin via Gcc-patches
on 2022/6/13 19:38, Richard Biener wrote: > On Mon, Jun 13, 2022 at 12:02 PM Kewen.Lin wrote: >> >> Hi, >> >> As PR105940 shown, when rs6000 port tries to assign >> m_suggested_unroll_factor by 4 or so, there will be ICE >> on below statement: >> >> exact_div (LOOP_VINFO_VECT_FACTOR (loop_vinfo)

Re: [PATCH] vect: Move suggested_unroll_factor applying [PR105940]

2022-06-13 Thread Richard Biener via Gcc-patches
On Mon, Jun 13, 2022 at 12:02 PM Kewen.Lin wrote: > > Hi, > > As PR105940 shown, when rs6000 port tries to assign > m_suggested_unroll_factor by 4 or so, there will be ICE > on below statement: > > exact_div (LOOP_VINFO_VECT_FACTOR (loop_vinfo), > loop_vinfo->suggested_unroll_factor

[PATCH] vect: Move suggested_unroll_factor applying [PR105940]

2022-06-13 Thread Kewen.Lin via Gcc-patches
Hi, As PR105940 shown, when rs6000 port tries to assign m_suggested_unroll_factor by 4 or so, there will be ICE on below statement: exact_div (LOOP_VINFO_VECT_FACTOR (loop_vinfo), loop_vinfo->suggested_unroll_factor); In function vect_analyze_loop_2, the current place of suggested