glsl: Vectorize multiple scalar assignments
authorMatt Turner <mattst88@gmail.com>
Sat, 21 Dec 2013 19:28:05 +0000 (11:28 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 21 Jan 2014 22:20:44 +0000 (14:20 -0800)
commit4bd6e0d7c69b304be88996a6c2b96ce7d996e627
tree6ed796744e87637628cba67217f31da8f78fea68
parent5e82d8a9da9eeab33e2819c2d90f1419e42cb33d
glsl: Vectorize multiple scalar assignments

Reduces vertex shader instruction counts in DOTA2 by 6.42%, L4D2 by
4.61%, and CS:GO by 5.71%.

total instructions in shared programs: 1500153 -> 1498191 (-0.13%)
instructions in affected programs:     59919 -> 57957 (-3.27%)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/Makefile.sources
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_optimization.h
src/glsl/opt_vectorize.cpp [new file with mode: 0644]