summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_vectorize.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-01-21 23:25:56 -0800
committerKenneth Graunke <[email protected]>2015-01-23 14:53:26 -0800
commit551a752a592703a97dcee74765463bb15ccb8b14 (patch)
tree8eddaa7314658513ac052e2963f2b99d83074796 /src/glsl/opt_vectorize.cpp
parent3e56572c498bea3c41692c80c242883373dab42a (diff)
nir: Add algebraic optimizations for pointless shifts.
The GLSL IR optimization pass contained these; we may as well include them too. v2: Fix a >> 0 and a << 0 optimizations (caught by Matt). No change in the number of NIR instructions on a shader-db run. total i965 instructions in shared programs: 6035397 -> 6035392 (-0.00%) i965 instructions in affected programs: 542 -> 537 (-0.92%) helped: 2 (in glamor) Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/opt_vectorize.cpp')
0 files changed, 0 insertions, 0 deletions