nir: add new partially_unrolled bool to nir_loop
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 19 Nov 2018 06:01:52 +0000 (17:01 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 12 Mar 2019 00:52:30 +0000 (00:52 +0000)
commitfba5d275db178232ce52160d84757bd2fb1bd9b8
tree6898527eb7ce6f7e779f0d8cba75725deccc068d
parent03a452b7d099b1d12b702a6d321431dbf039141b
nir: add new partially_unrolled bool to nir_loop

In order to stop continuously partially unrolling the same loop
we add the bool partially_unrolled to nir_loop, we add it here
rather than in nir_loop_info because nir_loop_info is only set
via loop analysis and is intended to be cleared before each
analysis. Also nir_loop_info is never cloned.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c