2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

coredevice/core: optimize further

This commit is contained in:
Sebastien Bourdeauducq 2014-10-31 23:44:07 +08:00
parent cf7848c698
commit 217fe8251b

View File

@ -44,7 +44,7 @@ class Core:
def run(self, k_function, k_args, k_kwargs):
# transform/simplify AST
_debug_unparse = _make_debug_unparse("remove_dead_code")
_debug_unparse = _make_debug_unparse("remove_dead_code_2")
func_def, rpc_map, exception_map = inline(
self, k_function, k_args, k_kwargs)
@ -77,7 +77,16 @@ class Core:
_debug_unparse("fold_constants_2", func_def)
remove_dead_code(func_def)
_debug_unparse("remove_dead_code", func_def)
_debug_unparse("remove_dead_code_1", func_def)
remove_inter_assigns(func_def)
_debug_unparse("remove_inter_assigns_3", func_def)
fold_constants(func_def)
_debug_unparse("fold_constants_3", func_def)
remove_dead_code(func_def)
_debug_unparse("remove_dead_code_2", func_def)
# compile to machine code and run
binary = get_runtime_binary(self.runtime_env, func_def)