Home | History | Annotate | Download | only in glsl

Lines Matching defs:optimization

27  * Standalone test for optimization passes.
57 do_optimization(struct exec_list *ir, const char *optimization)
65 if (sscanf(optimization, "do_common_optimization ( %d , %d ) ",
68 } else if (strcmp(optimization, "do_algebraic") == 0) {
70 } else if (strcmp(optimization, "do_constant_folding") == 0) {
72 } else if (strcmp(optimization, "do_constant_variable") == 0) {
74 } else if (strcmp(optimization, "do_constant_variable_unlinked") == 0) {
76 } else if (strcmp(optimization, "do_copy_propagation") == 0) {
78 } else if (strcmp(optimization, "do_copy_propagation_elements") == 0) {
80 } else if (strcmp(optimization, "do_constant_propagation") == 0) {
82 } else if (strcmp(optimization, "do_dead_code") == 0) {
84 } else if (strcmp(optimization, "do_dead_code_local") == 0) {
86 } else if (strcmp(optimization, "do_dead_code_unlinked") == 0) {
88 } else if (strcmp(optimization, "do_dead_functions") == 0) {
90 } else if (strcmp(optimization, "do_function_inlining") == 0) {
92 } else if (sscanf(optimization,
97 } else if (strcmp(optimization, "do_lower_texture_projection") == 0) {
99 } else if (strcmp(optimization, "do_if_simplification") == 0) {
101 } else if (sscanf(optimization, "lower_if_to_cond_assign ( %d ) ",
104 } else if (strcmp(optimization, "do_mat_op_to_vec") == 0) {
106 } else if (strcmp(optimization, "do_noop_swizzle") == 0) {
108 } else if (strcmp(optimization, "do_structure_splitting") == 0) {
110 } else if (strcmp(optimization, "do_swizzle_swizzle") == 0) {
112 } else if (strcmp(optimization, "do_tree_grafting") == 0) {
114 } else if (strcmp(optimization, "do_vec_index_to_cond_assign") == 0) {
116 } else if (strcmp(optimization, "do_vec_index_to_swizzle") == 0) {
118 } else if (strcmp(optimization, "lower_discard") == 0) {
120 } else if (sscanf(optimization, "lower_instructions ( %d ) ",
123 } else if (strcmp(optimization, "lower_noise") == 0) {
125 } else if (sscanf(optimization, "lower_variable_index_to_cond_assign "
130 } else if (sscanf(optimization, "lower_quadop_vector ( %d ) ",
133 } else if (strcmp(optimization, "optimize_redundant_jumps") == 0) {
136 printf("Unrecognized optimization %s\n", optimization);
149 const char *optimization = optimizations[i];
151 printf("*** Running optimization %s...", optimization);
153 GLboolean progress = do_optimization(ir, optimization);
235 printf("*** pre-optimization IR:\n");
240 /* Optimization passes */