nir: Use a switch statement for detecting move-like operations.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jun 2015 06:17:53 +0000 (23:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jun 2015 17:35:04 +0000 (10:35 -0700)
commit147cdb53ecd225ea21d8d552607d384217346ecb
tree059392ad21767e799ef9636c308442db855a4904
parente31bce4041122cd00712b60b4dc1eae6486f6579
nir: Use a switch statement for detecting move-like operations.

Suggested by Jason Ekstrand.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/glsl/nir/nir_opt_peephole_select.c