Re: [Mesa-dev] [PATCH 03/22] glsl: Add a IS_CONSTANT macro

2015-01-03 Thread Matt Turner
On Sat, Jan 3, 2015 at 12:10 PM, Thomas Helland wrote: > I was just looking at the git log and noticed the commit: >i965: Show opt_vector_float() and later passes in INTEL_DEBUG=optimizer. > It converts a macro to use the GNU Statement Expression extension. > This would greatly simplify the ma

Re: [Mesa-dev] [PATCH 03/22] glsl: Add a IS_CONSTANT macro

2015-01-03 Thread Thomas Helland
I was just looking at the git log and noticed the commit: i965: Show opt_vector_float() and later passes in INTEL_DEBUG=optimizer. It converts a macro to use the GNU Statement Expression extension. This would greatly simplify the macro I've written in this patch, so I'm considering rewriting it

[Mesa-dev] [PATCH 03/22] glsl: Add a IS_CONSTANT macro

2015-01-03 Thread Thomas Helland
Change opt_algebraic to use the new macro. Remove the old less than / greater than functions. --- src/glsl/ir_constant_util.h | 49 ++--- src/glsl/opt_algebraic.cpp | 8 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/src/glsl/ir_