소스 검색

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;