Re: [Mesa-dev] [PATCH 2/2] nir: add opt_if_loop_terminator()

2018-06-06 Thread Ian Romanick
On 06/03/2018 11:30 PM, Timothy Arceri wrote: > On 02/06/18 04:34, Ian Romanick wrote: > >> On 05/31/2018 10:37 PM, Timothy Arceri wrote: >>> This pass detects potential loop terminators and moves intructions >>> from the non breaking branch after the if. >>> >>> This enables both the new opt_if_s

Re: [Mesa-dev] [PATCH 2/2] nir: add opt_if_loop_terminator()

2018-06-03 Thread Timothy Arceri
On 02/06/18 04:34, Ian Romanick wrote: On 05/31/2018 10:37 PM, Timothy Arceri wrote: This pass detects potential loop terminators and moves intructions from the non breaking branch after the if. This enables both the new opt_if_simplification() pass and loop unrolling to potentially progress f

Re: [Mesa-dev] [PATCH 2/2] nir: add opt_if_loop_terminator()

2018-06-02 Thread Timothy Arceri
On 02/06/18 04:34, Ian Romanick wrote: On 05/31/2018 10:37 PM, Timothy Arceri wrote: This pass detects potential loop terminators and moves intructions from the non breaking branch after the if. This enables both the new opt_if_simplification() pass and loop unrolling to potentially progress fu

Re: [Mesa-dev] [PATCH 2/2] nir: add opt_if_loop_terminator()

2018-06-01 Thread Ian Romanick
On 05/31/2018 10:37 PM, Timothy Arceri wrote: > This pass detects potential loop terminators and moves intructions > from the non breaking branch after the if. > > This enables both the new opt_if_simplification() pass and loop > unrolling to potentially progress further. > > Unexpectedly this ch

[Mesa-dev] [PATCH 2/2] nir: add opt_if_loop_terminator()

2018-05-31 Thread Timothy Arceri
This pass detects potential loop terminators and moves intructions from the non breaking branch after the if. This enables both the new opt_if_simplification() pass and loop unrolling to potentially progress further. Unexpectedly this change speed up shader-db run times by ~3% Ivy Bridge shader-