Re: [Mesa-dev] [PATCH 4/6] nir: Introduce a nir_opt_move_comparisons() pass.

2016-08-10 Thread Jason Ekstrand
On Wed, Aug 10, 2016 at 11:14 AM, Ian Romanick wrote: > On 08/09/2016 07:30 PM, Kenneth Graunke wrote: > > This tries to move comparisons (a common source of boolean values) > > closer to their first use. For GPUs which use condition codes, > > this can eliminate a lot of temporary booleans and

Re: [Mesa-dev] [PATCH 4/6] nir: Introduce a nir_opt_move_comparisons() pass.

2016-08-10 Thread Ian Romanick
On 08/09/2016 07:30 PM, Kenneth Graunke wrote: > This tries to move comparisons (a common source of boolean values) > closer to their first use. For GPUs which use condition codes, > this can eliminate a lot of temporary booleans and comparisons > which reload the condition code register based on

[Mesa-dev] [PATCH 4/6] nir: Introduce a nir_opt_move_comparisons() pass.

2016-08-09 Thread Kenneth Graunke
This tries to move comparisons (a common source of boolean values) closer to their first use. For GPUs which use condition codes, this can eliminate a lot of temporary booleans and comparisons which reload the condition code register based on a boolean. Signed-off-by: Kenneth Graunke --- src/co