nir/loop_analyze: skip unsupported induction variable early
authorQiang Yu <yuq825@gmail.com>
Mon, 26 Jul 2021 09:13:52 +0000 (17:13 +0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Aug 2021 02:17:35 +0000 (02:17 +0000)
commit3c93ebbae58e3e3f5b1ab716a801eb9dfb26fbff
tree5d8c7de789b127f6c0757586bc10856ace71fc0d
parent0b9639c35d0aafbb761bc6ca9c780793b125b1b5
nir/loop_analyze: skip unsupported induction variable early

Instead of fail in trip count calculation, just don't mark such
kind of variable as induction from the beginning.

Don't bother inline uniform to deal with such kind of variable
either.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11950>
src/compiler/nir/nir_loop_analyze.c