nir/dead_cf: Inline cf_node_has_side_effects
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Feb 2019 03:28:07 +0000 (21:28 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Feb 2019 05:05:28 +0000 (23:05 -0600)
commitb50465d1974a562cd1b5f889d6b9495002f81d91
tree2674479e2cf125bd6094b3246d5b993a34af4304
parent367b0ede4d9115aba772d6e46ec73642761f7ff6
nir/dead_cf: Inline cf_node_has_side_effects

We want to handle live SSA values differently and it's going to involve
walking the instructions.  We can make it a single instruction walk if
we combine it with cf_node_has_side_effects.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_dead_cf.c