#include "ir_optimization.h"
#include "glsl_types.h"
-using std::calloc;
-using std::free;
-
struct assignment_entry {
exec_node link;
int assignment_count;
/* 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)