nir: add complex_loop bool to loop info
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 7 Jul 2018 02:09:26 +0000 (12:09 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 29 Aug 2018 06:02:05 +0000 (16:02 +1000)
commit5a6b04d94bd2ec175d485b71e8ae815efd778a8a
tree84bb156b4bd39e97bdd87e550e142db4b780c40f
parentfef6325e587173f2146a8aab75847144d2f802ff
nir: add complex_loop bool to loop info

In order to be sure loop_terminator_list is an accurate
representation of all the jumps in the loop we need to be sure we
didn't encounter any other complex behaviour such as continues,
nested breaks, etc during analysis.

This will be used in the following patch.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_loop_analyze.c