OSDN Git Service

nir: Pull nir_instr_can_cse()'s SSA checks out of the switch.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Jan 2015 20:20:59 +0000 (12:20 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Jan 2015 22:53:26 +0000 (14:53 -0800)
commitcbdd623f13a3cd2b7cfc5aea2185eee7d7d53c1a
treed41c6ab218cd428d613ff229a2642224eb48dcb8
parentd7743bb1c2d5cfe44a018251d21def18eb6d4b97
nir: Pull nir_instr_can_cse()'s SSA checks out of the switch.

This should not be a change in behavior, as all current cases that
potentially answer "yes" require SSA.

The next patch will introduce another case that requires SSA.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/nir/nir_opt_cse.c