Re: [Mesa-dev] [PATCH] nir: add pass to move load_const

2018-06-18 Thread Rob Clark
On Mon, Jun 18, 2018 at 6:36 PM, Ian Romanick wrote: > On 06/11/2018 08:23 AM, Rob Clark wrote: >> Run this pass late (after opt loop) to move load_const instructions back >> into the basic blocks which use the result, in cases where a load_const >> is only consumed in a single block. >> >> This h

Re: [Mesa-dev] [PATCH] nir: add pass to move load_const

2018-06-18 Thread Ian Romanick
On 06/11/2018 08:23 AM, Rob Clark wrote: > Run this pass late (after opt loop) to move load_const instructions back > into the basic blocks which use the result, in cases where a load_const > is only consumed in a single block. > > This helps reduce register usage in cases where the backend driver

[Mesa-dev] [PATCH] nir: add pass to move load_const

2018-06-11 Thread Rob Clark
Run this pass late (after opt loop) to move load_const instructions back into the basic blocks which use the result, in cases where a load_const is only consumed in a single block. This helps reduce register usage in cases where the backend driver cannot lower the load_const to a uniform. v2: use