diff options
author | Eric Anholt <[email protected]> | 2011-01-30 07:59:14 +1000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-02-04 12:18:38 -0600 |
commit | 29a2e9133e415de8b010df5b80db758aaf1007a6 (patch) | |
tree | 146ef5788bce45b707b983caac8d8f74d41f9814 /src/glsl/opt_copy_propagation.cpp | |
parent | b6d49ab843ff7ee989e99bb28a36eb53f704c879 (diff) |
glsl: Remove extra checks for constant true assignment conditions.
These are already stripped by opt_constant_folding.cpp.
Diffstat (limited to 'src/glsl/opt_copy_propagation.cpp')
-rw-r--r-- | src/glsl/opt_copy_propagation.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/glsl/opt_copy_propagation.cpp b/src/glsl/opt_copy_propagation.cpp index 387db642354..efa3afda35a 100644 --- a/src/glsl/opt_copy_propagation.cpp +++ b/src/glsl/opt_copy_propagation.cpp @@ -309,11 +309,8 @@ ir_copy_propagation_visitor::add_copy(ir_assignment *ir) { acp_entry *entry; - if (ir->condition) { - ir_constant *condition = ir->condition->as_constant(); - if (!condition || !condition->value.b[0]) - return; - } + if (ir->condition) + return; ir_variable *lhs_var = ir->whole_variable_written(); ir_variable *rhs_var = ir->rhs->whole_variable_referenced(); |