Re: [Mesa-dev] [PATCH 20/21] nir/cf: add new control modification API's

2015-08-05 Thread Kenneth Graunke
On Tuesday, July 21, 2015 07:54:34 PM Connor Abbott wrote: > These will help us do a number of things, including: > > - Early return elimination. > - Dead control flow elimination. > - Various optimizations, such as replacing: > > if (foo) { > ... > } > if (!foo) { > ... > } > > with: >

[Mesa-dev] [PATCH 20/21] nir/cf: add new control modification API's

2015-07-21 Thread Connor Abbott
These will help us do a number of things, including: - Early return elimination. - Dead control flow elimination. - Various optimizations, such as replacing: if (foo) { ... } if (!foo) { ... } with: if (foo) { ... } else { ... } Signed-off-by: Connor Abbott --- src/glsl/nir/n