From: Eric Anholt Date: Wed, 12 May 2010 19:15:40 +0000 (-0700) Subject: ir_constant_folding: Look at instructions in functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f389862006dde5b0d4bcf36ba85364a1ef6d4a5d;p=mesa.git ir_constant_folding: Look at instructions in functions. This was broken in the ir_label -> ir_function rework. --- diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp index c7019ffc626..b3f27c80c85 100644 --- a/ir_constant_folding.cpp +++ b/ir_constant_folding.cpp @@ -91,7 +91,10 @@ ir_constant_folding_visitor::visit(ir_function_signature *ir) void ir_constant_folding_visitor::visit(ir_function *ir) { - (void) ir; + foreach_iter(exec_list_iterator, iter, *ir) { + ir_function_signature *const sig = (ir_function_signature *) iter.get(); + sig->accept(this); + } } void