diff options
author | Eric Anholt <[email protected]> | 2013-10-21 17:01:49 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-10-28 14:07:31 -0700 |
commit | 08bf52712e9dbd32ea3e4855c3446eba624fc890 (patch) | |
tree | 7c30380a6b9becc9c3977629a4c5edbe5044d1e9 /src/glsl/linker.cpp | |
parent | 3a0fdf2ab6ab9c66c50645409d8f79bcd6f8ed1b (diff) |
glsl: Drop no-op shifts involving 0.
I noticed this in a shader in Unigine Heaven that was spilling. While it
doesn't really reduce register pressure, it shaves a few instructions
anyway (7955 -> 7882).
v2: Fix turning "0 >> x" into "x" instead of "0" (caught by Erik
Faye-Lund).
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
0 files changed, 0 insertions, 0 deletions