*/
/**
- * \file ir_constant_variable.cpp
+ * \file opt_constant_variable.cpp
*
* Marks variables assigned a single constant value over the course
* of the program as constant.
/* 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)