gallium/ntt: Fix check for "is there anything in the else block?"
authorEric Anholt <eric@anholt.net>
Tue, 22 Dec 2020 20:18:28 +0000 (12:18 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 27 Dec 2020 18:48:03 +0000 (10:48 -0800)
commit746a0f502ae0be3b755946dbaed0e66ee154c41e
tree6da8b08d9352e197f0625c4df54f35026f2c9431
parent358d5a270d98fa42e5b8c26a7e2deddeb511f5f1
gallium/ntt: Fix check for "is there anything in the else block?"

The cf list will always be non-empty, with at least a block in it.
Noticed while checking codegen of a piglit test that was really slow on
softpipe.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8068>
src/gallium/auxiliary/nir/nir_to_tgsi.c