nir/lower_alu_to_scalar: Return after lower_reduction
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Sep 2015 00:16:59 +0000 (17:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Sep 2015 03:37:35 +0000 (20:37 -0700)
commit0f9bf647705db48a88c700bfa7ca3d4a9f6b4f56
treedd66a3057c75004b97f41aafe3406a671876648c
parent2b79db2c0216075f5047fe3723d100fd70fc59c7
nir/lower_alu_to_scalar: Return after lower_reduction

We don't use any of the code after the switch anyway.  Since we check for
num_components == 1 and early-return, it doesn't get executed so
everything's ok.  However, it makes it much clearer what's going on if we
simply do an early return.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_lower_alu_to_scalar.c