On Fri, Apr 6, 2018 at 2:05 PM, Caio Marcelo de Oliveira Filho <
caio.olive...@intel.com> wrote:

> On Tue, Apr 03, 2018 at 11:32:50AM -0700, Jason Ekstrand wrote:
> > Sometimes it's useful for a pass to be able to clean up its own derefs
> > instead of waiting for DCE.  This little helper makes it very easy.
> > ---
> >  src/compiler/nir/nir.h       |  2 ++
> >  src/compiler/nir/nir_deref.c | 13 +++++++++++++
> >  2 files changed, 15 insertions(+)
>
>
> The helper is used in earlier patches, so maybe reorder. If I'm not
> mistaken it is used as early as patch 13 ("nir: Support deref
> instructions in remove_dead_variables").
>

Yeah, I noticed this while rebasing.  The earliest use appears to be in
lower_var_copies.  I've moved it to right before that patch.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to