ac/nir: convert several ifs to a switch
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 6 Jun 2017 22:55:26 +0000 (01:55 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 7 Jun 2017 21:02:26 +0000 (00:02 +0300)
commit7dfa54399cd42715f29821bb0c2ac3b58394e37c
tree45dc394fd8e7c4dbe5ed3bc2bb894afe54e7c21c
parentae3262c1f2a287f59d654d44161177d15c2ceb3c
ac/nir: convert several ifs to a switch

Also solve "outinfo may be used uninitialized" warning by putting in an
unreachable().

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c