v3d: Simplify the emission of comparisons for the bcsel optimization.
authorEric Anholt <eric@anholt.net>
Fri, 28 Dec 2018 21:45:25 +0000 (13:45 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 2 Jan 2019 22:12:29 +0000 (14:12 -0800)
commitc3ae0aa264735fc6528d7ca0bf31a72cab1d2dfb
treef4fa7bf81e63f71f0e3e3b0b79457ac22f392dae
parent49d8e2aff1d7f7da6311dbae8621d6e79cea2d78
v3d: Simplify the emission of comparisons for the bcsel optimization.

I wanted to reuse the comparison stuff for nir_ifs, but for that I just
want the flags and no destination value.  Splitting the conditions from
the destinations ended up cleaning the existing code up, anyway.
src/broadcom/compiler/nir_to_vir.c