Re: [Mesa-dev] [PATCH 3/9] nir: Skip common instructions when comparing deref paths

2018-08-22 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Wed, Aug 15, 2018 at 4:57 PM Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Deref paths may share the same deref instructions in their chains, > e.g. > > ssa_100 = deref_var A > ssa_101 = deref_struct "array_field" of ssa_100 > ssa_1

[Mesa-dev] [PATCH 3/9] nir: Skip common instructions when comparing deref paths

2018-08-15 Thread Caio Marcelo de Oliveira Filho
Deref paths may share the same deref instructions in their chains, e.g. ssa_100 = deref_var A ssa_101 = deref_struct "array_field" of ssa_100 ssa_102 = deref_array "[1]" of ssa_101 ssa_103 = deref_struct "field_a" of ssa_102 ssa_104 = deref_struct "field_a" of ssa_103 when com