summaryrefslogtreecommitdiffstats
path: root/src/compiler/Makefile.glsl.am
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-09-14 13:52:42 -0700
committerIan Romanick <[email protected]>2016-11-10 14:30:49 -0800
commitf45a2a93aea0a57cf0aa8ee9ca062fcc42407a44 (patch)
tree85b7c3c1afaaba0042e50621955d1c004250193b /src/compiler/Makefile.glsl.am
parent9788b3b6f363580fd8d9d7e221cab28879e4d169 (diff)
glsl/standalone: Optimize add-of-neg to subtract
This just makes the output of the standalone compiler a little more compact. v2: Fix indexing typo noticed by Iago. Move the add_neg_to_sub_visitor to it's own header file. Add a unit test that exercises the visitor. Both the neg_a_plus_b and neg_a_plus_neg_b tests reproduced the bug that Iago discovered. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/Makefile.glsl.am')
-rw-r--r--src/compiler/Makefile.glsl.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/Makefile.glsl.am b/src/compiler/Makefile.glsl.am
index 8bfb902f11b..3eac677de0d 100644
--- a/src/compiler/Makefile.glsl.am
+++ b/src/compiler/Makefile.glsl.am
@@ -72,6 +72,7 @@ glsl_tests_general_ir_test_SOURCES = \
glsl/tests/builtin_variable_test.cpp \
glsl/tests/invalidate_locations_test.cpp \
glsl/tests/general_ir_test.cpp \
+ glsl/tests/opt_add_neg_to_sub_test.cpp \
glsl/tests/varyings_test.cpp
glsl_tests_general_ir_test_CFLAGS = \
$(PTHREAD_CFLAGS)