Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-12-09 Thread Timothy Arceri
On Fri, 2016-12-09 at 17:23 -0800, Jason Ekstrand wrote: > Wow!  This is way better than the last time I read through it.  Good > work! > > Overall, I'm much happier with the code now.  The structure is > better, some of the crazy phi logic is gone, and clone_cf_list is > helping a lot.  That said

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-12-09 Thread Jason Ekstrand
Wow! This is way better than the last time I read through it. Good work! Overall, I'm much happier with the code now. The structure is better, some of the crazy phi logic is gone, and clone_cf_list is helping a lot. That said... I still have a pile of comments. Most of them are cosmetic, one

[Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-12-05 Thread Timothy Arceri
V2: - tidy ups suggested by Connor. - tidy up cloning logic and handle copy propagation based of suggestion by Connor. - use nir_ssa_def_rewrite_uses to fix up lcssa phis suggested by Connor. - add support for complex loop unrolling (two terminators) - handle case were the ssa defs use outside t

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-06 Thread Timothy Arceri
On Thu, 2016-10-06 at 10:33 -0700, Jason Ekstrand wrote: > > > > On Wed, Oct 5, 2016 at 7:25 PM, Timothy Arceri > abora.com> wrote: > > > Just  > > > > > > On Wed, 2016-10-05 at 16:23 -0700, Jason Ekstrand wrote: > > > > > > > > > > > > On Thu, Sep 15, 2016 at 12:03 AM, Timothy Arceri > > i@col

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-06 Thread Jason Ekstrand
On Thu, Oct 6, 2016 at 10:22 AM, Jason Ekstrand wrote: > > > On Wed, Oct 5, 2016 at 7:25 PM, Timothy Arceri < > timothy.arc...@collabora.com> wrote: > >> Just >> >> On Wed, 2016-10-05 at 16:23 -0700, Jason Ekstrand wrote: >> > >> > >> > On Thu, Sep 15, 2016 at 12:03 AM, Timothy Arceri > > abora.co

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-06 Thread Jason Ekstrand
On Wed, Oct 5, 2016 at 7:25 PM, Timothy Arceri wrote: > Just > > On Wed, 2016-10-05 at 16:23 -0700, Jason Ekstrand wrote: > > > > > > On Thu, Sep 15, 2016 at 12:03 AM, Timothy Arceri > abora.com> wrote: > > > V2: > > > - tidy ups suggested by Connor. > > > - tidy up cloning logic and handle copy

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-05 Thread Timothy Arceri
On Thu, 2016-10-06 at 13:25 +1100, Timothy Arceri wrote: > > > + > > > +static void > > > +update_remap_tables(bool is_first_iteration, struct hash_table > > > *remap_table, > > > +                    struct hash_table *phi_remap, > > > +                    struct hash_table *src_before_loop, >

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-05 Thread Timothy Arceri
Just  On Wed, 2016-10-05 at 16:23 -0700, Jason Ekstrand wrote: > > > On Thu, Sep 15, 2016 at 12:03 AM, Timothy Arceri abora.com> wrote: > > V2: > > - tidy ups suggested by Connor. > > - tidy up cloning logic and handle copy propagation > >  based of suggestion by Connor. > > - use nir_ssa_def_r

Re: [Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-10-05 Thread Jason Ekstrand
On Thu, Sep 15, 2016 at 12:03 AM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > V2: > - tidy ups suggested by Connor. > - tidy up cloning logic and handle copy propagation > based of suggestion by Connor. > - use nir_ssa_def_rewrite_uses to fix up lcssa phis > suggested by Connor. > -

[Mesa-dev] [PATCH 08/10] nir: add a loop unrolling pass

2016-09-15 Thread Timothy Arceri
V2: - tidy ups suggested by Connor. - tidy up cloning logic and handle copy propagation based of suggestion by Connor. - use nir_ssa_def_rewrite_uses to fix up lcssa phis suggested by Connor. - add support for complex loop unrolling (two terminators) - handle case were the ssa defs use outside t