Re: [Mesa-dev] [PATCH] nir: fix crash in loop unroll corner case

2018-03-26 Thread Jason Ekstrand
On Sun, Mar 25, 2018 at 6:32 PM, Timothy Arceri wrote: > When an if nesting inside anouther if is optimised away we can > end up with a loop terminator and following block that looks like > this: > > if ssa_596 { > block block_5: > /* preds: block_4 */ >

[Mesa-dev] [PATCH] nir: fix crash in loop unroll corner case

2018-03-25 Thread Timothy Arceri
When an if nesting inside anouther if is optimised away we can end up with a loop terminator and following block that looks like this: if ssa_596 { block block_5: /* preds: block_4 */ vec1 32 ssa_601 = load_const (0x /* -nan */)