Home
last modified time | relevance | path

Searched refs:then_discard (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/glsl/
Dopt_discard_simplification.cpp123 ir_discard *then_discard = find_unconditional_discard(ir->then_instructions); in visit_enter() local
126 if (then_discard == NULL && else_discard == NULL) in visit_enter()
130 if (then_discard != NULL && else_discard != NULL) { in visit_enter()
132 ir->replace_with(then_discard); in visit_enter()
137 if (then_discard != NULL && !is_only_instruction(then_discard)) { in visit_enter()
140 ir->then_instructions.push_tail(then_discard); in visit_enter()
Dlower_discard.cpp167 ir_discard *then_discard = find_discard(ir->then_instructions); in visit_leave() local
170 if (then_discard == NULL && else_discard == NULL) in visit_leave()
185 if (then_discard != NULL) in visit_leave()
186 replace_discard(mem_ctx, temp, then_discard); in visit_leave()
191 ir_discard *discard = then_discard != NULL ? then_discard : else_discard; in visit_leave()