Re: [Mesa-dev] [PATCH] nir: Allow opt_peephole_select to work on empty blocks.

2016-08-01 Thread Jason Ekstrand
On Aug 1, 2016 12:41 PM, "Eric Anholt" wrote: > > nir_opt_peephole_select has the job of removing IF statements with no side > effects. However, if the IF statement's successor didn't have any > instructions in it, we were skipping it, which occurred in mupen64 on > vc4 with glsl_to_nir enabled:

[Mesa-dev] [PATCH] nir: Allow opt_peephole_select to work on empty blocks.

2016-08-01 Thread Eric Anholt
nir_opt_peephole_select has the job of removing IF statements with no side effects. However, if the IF statement's successor didn't have any instructions in it, we were skipping it, which occurred in mupen64 on vc4 with glsl_to_nir enabled: instructions in affected programs: 6134 -> 4120 (-32