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

2017-01-11 Thread Jason Ekstrand
On Wed, Jan 11, 2017 at 12:49 PM, Jason Ekstrand wrote: > I just sent three squash-in patches that I think improve this pass a bit > and make things more clear. With those (or a good reason why not), > FYI, they've already been run through Jenkins. :-) > Reviewed-by: Jason Ekstrand > > On Tu

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

2017-01-11 Thread Jason Ekstrand
I just sent three squash-in patches that I think improve this pass a bit and make things more clear. With those (or a good reason why not), Reviewed-by: Jason Ekstrand On Tue, Jan 10, 2017 at 1:41 AM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > From: Kenneth Graunke > > This tries

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

2017-01-10 Thread Timothy Arceri
From: 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. V2: (Timothy Arceri