glsl: Remove CSE pass.
authorMatt Turner <mattst88@gmail.com>
Wed, 23 Sep 2015 19:44:44 +0000 (12:44 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 5 Oct 2015 21:31:26 +0000 (14:31 -0700)
commit617eb5e6c3058730c118b9178b50f2ab82f6932d
tree535261b50e23084c9b2ab496afb8dfc1a98474d3
parent5a360dcad1fdb91f9129cb21775b9af60cbf57e4
glsl: Remove CSE pass.

With NIR, it actually hurts things.

total instructions in shared programs: 6529329 -> 6528888 (-0.01%)
instructions in affected programs:     14833 -> 14392 (-2.97%)
helped:                                299
HURT:                                  1

In all affected programs I inspected (including the single hurt one) the
pass CSE'd some multiplies and caused some reassociation (e.g., caused
(A * B) * C to be A * (B * C)) when the original intermediate result was
reused elsewhere.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.sources
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_optimization.h
src/glsl/opt_cse.cpp [deleted file]