Re: [Mesa-dev] [PATCH 2/2] nir: merge some basic consecutive ifs

2018-11-27 Thread Ian Romanick
On 11/26/2018 09:31 PM, Timothy Arceri wrote: > After trying multiple times to merge if-statements with phis > between them I've come to the conclusion that it cannot be done > without regressions. The problem is for some shaders we end up > with a whole bunch of phis for the merged ifs resulting i

[Mesa-dev] [PATCH 2/2] nir: merge some basic consecutive ifs

2018-11-26 Thread Timothy Arceri
After trying multiple times to merge if-statements with phis between them I've come to the conclusion that it cannot be done without regressions. The problem is for some shaders we end up with a whole bunch of phis for the merged ifs resulting in increased register pressure. So this patch just mer