nir/dead_cf: Call instructions aren't dead
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 23 May 2019 03:13:15 +0000 (22:13 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 31 May 2019 01:08:03 +0000 (01:08 +0000)
commit8948048c6f01209bac0051e41cd84c38853bd251
tree90f7a208ec100c988b7360ded9f0191e96364e07
parent5441d562433a6315ca00c0c69160ff848e5ec34a
nir/dead_cf: Call instructions aren't dead

When we inlined cf_node_has_side_effects into node_is_dead, all the
conditions flipped and we forgot to flip one.  Fortunately, it doesn't
matter right now because no one uses this pass on shaders with more than
one function.

Fixes: b50465d197 "nir/dead_cf: Inline cf_node_has_side_effects"
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_opt_dead_cf.c