summaryrefslogtreecommitdiffstats
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-04-07 11:46:26 -0700
committerEric Anholt <[email protected]>2010-04-08 11:24:06 -0700
commitcad9766118d269725ef33b4e9588d674d5225010 (patch)
tree41226eeade127594a93b3f4780d9da9dd026b2eb /glsl_parser_extras.cpp
parentb427c917ce47675b102fac3ddace883629ff6be8 (diff)
Inline functions consisting of a return of an expression.
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index fd44e966024..a4a67c88bcb 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -35,6 +35,7 @@
#include "glsl_parser_extras.h"
#include "glsl_parser.h"
#include "ir_constant_folding.h"
+#include "ir_function_inlining.h"
#include "ir_print_visitor.h"
const char *
@@ -753,6 +754,8 @@ main(int argc, char **argv)
/* Optimization passes */
if (!state.error) {
+ do_function_inlining(&instructions);
+
/* Constant folding */
ir_constant_folding_visitor constant_folding;
visit_exec_list(&instructions, &constant_folding);