Make constant folding descend into if statements.

This commit is contained in:
Eric Anholt
2010-04-06 11:52:09 -07:00
parent e5a9e70cde
commit 70b74928a2
4 changed files with 17 additions and 4 deletions
+3
View File
@@ -141,4 +141,7 @@ ir_constant_folding_visitor::visit(ir_if *ir)
ir->condition = const_val;
else
ir->condition->accept(this);
visit_exec_list(&ir->then_instructions, this);
visit_exec_list(&ir->else_instructions, this);
}