Re: [PATCH v2] Use range-based for loops for traversing loops

2021-07-22 Thread Richard Biener via Gcc-patches
On Thu, Jul 22, 2021 at 2:56 PM Richard Biener wrote: > > On Tue, Jul 20, 2021 at 4:37 > PM Kewen.Lin wrote: > > > > Hi, > > > > This v2 has addressed some review comments/suggestions: > > > > - Use "!=" instead of "<" in function operator!= (const Iter &rhs) > > - Add new CTOR loops_list (st

Re: [PATCH v2] Use range-based for loops for traversing loops

2021-07-22 Thread Richard Biener via Gcc-patches
On Tue, Jul 20, 2021 at 4:37 PM Kewen.Lin wrote: > > Hi, > > This v2 has addressed some review comments/suggestions: > > - Use "!=" instead of "<" in function operator!= (const Iter &rhs) > - Add new CTOR loops_list (struct loops *loops, unsigned flags) > to support loop hierarchy tree rat

[PATCH v2] Use range-based for loops for traversing loops

2021-07-20 Thread Kewen.Lin via Gcc-patches
Hi, This v2 has addressed some review comments/suggestions: - Use "!=" instead of "<" in function operator!= (const Iter &rhs) - Add new CTOR loops_list (struct loops *loops, unsigned flags) to support loop hierarchy tree rather than just a function, and adjust to use loops* according