nir: simplify the loop analysis trip count code a little
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 6 Dec 2018 00:12:12 +0000 (11:12 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 12 Mar 2019 00:52:30 +0000 (00:52 +0000)
commit090feaacdc83cdfa6a15485eac3a466489968841
tree4fa6e629daf991487a4f300f879717944c6039a0
parent7571de8eaa50bca1e0162ce212c47a6f9e927120
nir: simplify the loop analysis trip count code a little

Here we create a helper is_supported_terminator_condition()
and use that rather than embedding all the trip count code
inside a switch.

The new helper will also be used in a following patch.

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