Re: [Mesa-dev] [PATCH 3/3] i965/fs: Drop no-op shifts involving 0.

2013-10-28 Thread Eric Anholt
Matt Turner matts...@gmail.com writes: On Fri, Oct 25, 2013 at 2:49 PM, Eric Anholt e...@anholt.net wrote: 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

[Mesa-dev] [PATCH 3/3] i965/fs: Drop no-op shifts involving 0.

2013-10-25 Thread Eric Anholt
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). --- src/glsl/opt_algebraic.cpp | 10 ++ 1 file

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Drop no-op shifts involving 0.

2013-10-25 Thread Matt Turner
On Fri, Oct 25, 2013 at 2:49 PM, Eric Anholt e...@anholt.net wrote: 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