intel/fs: Don't emit empty ELSE blocks.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Apr 2019 21:24:31 +0000 (14:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Apr 2019 05:36:09 +0000 (22:36 -0700)
commit9dcf90d7ba966cba904266209087a87ea9c018b9
tree3abf4f33ff026f1aeac7a4c3f077b3273ee5bf50
parent2b44b27dbe994a39d511211dcce1bb8367b0d066
intel/fs: Don't emit empty ELSE blocks.

While we can clean this up later, it's trivial to not generate the
stupid code in the first place, which saves some optimization work.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs_nir.cpp