[Mesa-dev] [PATCH v3 023/104] nir/deref: Add a deref cleanup function

Jason Ekstrand jason at jlekstrand.net
Sat Apr 7 05:46:23 UTC 2018


On Fri, Apr 6, 2018 at 2:05 PM, Caio Marcelo de Oliveira Filho <
caio.oliveira at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180406/f1cffc46/attachment.html>


More information about the mesa-dev mailing list