ir_constant_folding: Look at instructions in functions.
authorEric Anholt <eric@anholt.net>
Wed, 12 May 2010 19:15:40 +0000 (12:15 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Jun 2010 22:15:04 +0000 (15:15 -0700)
This was broken in the ir_label -> ir_function rework.

ir_constant_folding.cpp

index c7019ffc6262971e65c259a89c2db4066dfa5d3c..b3f27c80c859b7de26a6352f3233a4eefb301e66 100644 (file)
@@ -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