Re: [Mesa-dev] [PATCH 11/11] nir: Copy propagation between blocks

2018-10-15 Thread Jason Ekstrand
Can you please re-send the latest version of this patch? It's easier to comment on the ML. On Mon, Oct 15, 2018 at 12:44 PM Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Hi, > > > > + } > > > + > > > + if (new_written) { > > > + /* Merge new information to the paren

Re: [Mesa-dev] [PATCH 11/11] nir: Copy propagation between blocks

2018-10-15 Thread Caio Marcelo de Oliveira Filho
Hi, > > + } > > + > > + if (new_written) { > > + /* Merge new information to the parent control flow node. */ > > + if (written) { > > + written->modes |= new_written->modes; > > + struct hash_entry *ht_entry; > > + hash_table_foreach(new_written->derefs, ht_e

Re: [Mesa-dev] [PATCH 11/11] nir: Copy propagation between blocks

2018-10-03 Thread Jason Ekstrand
On Sat, Sep 15, 2018 at 12:46 AM Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Extend the pass to propagate the copies information along the control > flow graph. It performs two walks, first it collects the vars > that were written inside each node. Then it walks applying th

[Mesa-dev] [PATCH 11/11] nir: Copy propagation between blocks

2018-09-14 Thread Caio Marcelo de Oliveira Filho
Extend the pass to propagate the copies information along the control flow graph. It performs two walks, first it collects the vars that were written inside each node. Then it walks applying the copy propagation using a list of copies previously available. At each node the list is invalidated acc