diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-26 23:56:19 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-08-09 21:42:17 -0700 |
commit | 0ff3b2b344b21ae4a7b62ebba22d7358755c8dfe (patch) | |
tree | 1b6ff550d9d51fa39837dcab502a1bafb27e5639 /configs/aix | |
parent | 5854d4583c6e8885185e12a0636f77489a62e24c (diff) |
glsl2: Make ir_algebraic reassociate add/mul operands for constant folding.
It's rather easy to produce two constant multiplies separated by other
multiplies while writing a BRDF shader, and non-obvious enough in the
resulting codegen that I didn't catch it in my demo code until just
recently. Cuts 3 965 instructions from my demo (<1%), and 20 from
glsl-fs-raytrace (1.3%).
Diffstat (limited to 'configs/aix')
0 files changed, 0 insertions, 0 deletions