Re: [Mesa-dev] [PATCH 4/9] nir: Give end_block its own index

2018-08-22 Thread Jason Ekstrand
Seems reasonable Reviewed-by: Jason Ekstrand On Wed, Aug 15, 2018 at 4:58 PM Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Since there's no particular reason for the index to be 0, choose an > index that is not used by other block. This is convenient when we > store

[Mesa-dev] [PATCH 4/9] nir: Give end_block its own index

2018-08-15 Thread Caio Marcelo de Oliveira Filho
Since there's no particular reason for the index to be 0, choose an index that is not used by other block. This is convenient when we store "per-block" data in an array AND look for the successors data (e.g. any kind of backwards data-flow analysis). --- src/compiler/nir/nir.c | 2 +- 1 file