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
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
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