Преглед на файлове

juggle filter order a bit to allow reduction before analysis (closes #3426)

Simon Krajewski преди 11 години
родител
ревизия
1b97294a0a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      filters.ml

+ 2 - 1
filters.ml

@@ -957,8 +957,9 @@ let run com tctx main =
 	 	let filters = [
 	 		Codegen.UnificationCallback.run (check_unification com);
 			Codegen.AbstractCast.handle_abstract_casts tctx;
-			blockify_ast;
 			Optimizer.inline_constructors tctx;
+			Optimizer.reduce_expression tctx;
+			blockify_ast;
 			captured_vars com;
 		] in
 		List.iter (post_process tctx filters) com.types;