Re: [Mesa-dev] [PATCH 1/2] nir: add an optimization to remove useless phi nodes

2015-02-03 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand Tested-by: Jason Ekstrand And here's the shader-db stats for the commit message: total NIR instructions in shared programs: 2045293 -> 2041209 (-0.20%) NIR instructions in affected programs: 126564 -> 122480 (-3.23%) helped:615 HUR

Re: [Mesa-dev] [PATCH 1/2] nir: add an optimization to remove useless phi nodes

2015-02-02 Thread Connor Abbott
On Tue, Feb 3, 2015 at 1:54 AM, Connor Abbott wrote: > This removes phi nodes whose sources all point to the same thing. > > Only compile tested. > > Signed-off-by: Connor Abbott > --- > src/glsl/Makefile.sources | 1 + > src/glsl/nir/nir.h | 2 + > src/glsl/nir/nir_

[Mesa-dev] [PATCH 1/2] nir: add an optimization to remove useless phi nodes

2015-02-02 Thread Connor Abbott
This removes phi nodes whose sources all point to the same thing. Only compile tested. Signed-off-by: Connor Abbott --- src/glsl/Makefile.sources | 1 + src/glsl/nir/nir.h | 2 + src/glsl/nir/nir_opt_remove_phis.c | 111 + 3 files