nir/lower_goto_if: Rework some set union logic
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 12 Aug 2020 20:47:18 +0000 (15:47 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 Aug 2020 20:35:37 +0000 (20:35 +0000)
commit0fad20f21b39b72c965151a0e2b0fb36e436b813
tree3d42b9ecf0f44455ee0239cbf18fca7677247792
parentd1617985896274dce37b943307d456a042fb2a6d
nir/lower_goto_if: Rework some set union logic

I find the ternary a bit hard to read.  The optimization is fairly
obvious but the way it's coded makes things more dense than they
probably need to be.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2401>
src/compiler/nir/nir_lower_goto_ifs.c