glsl: Remove extra checks for constant true assignment conditions.
These are already stripped by opt_constant_folding.cpp.
This commit is contained in:
parent
b6d49ab843
commit
29a2e9133e
5 changed files with 9 additions and 28 deletions
|
|
@ -107,11 +107,8 @@ ir_constant_variable_visitor::visit_enter(ir_assignment *ir)
|
|||
/* OK, now find if we actually have all the right conditions for
|
||||
* this to be a constant value assigned to the var.
|
||||
*/
|
||||
if (ir->condition) {
|
||||
constval = ir->condition->constant_expression_value();
|
||||
if (!constval || !constval->value.b[0])
|
||||
return visit_continue;
|
||||
}
|
||||
if (ir->condition)
|
||||
return visit_continue;
|
||||
|
||||
ir_variable *var = ir->whole_variable_written();
|
||||
if (!var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue