瀏覽代碼

Merge blocks before constructing SSA form

This keeps SSA construction from causing a stack overflow for exceptionally large control-flow graphs.
jonathanvdc 8 年之前
父節點
當前提交
39439a0801
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/modelverse_jit/cfg_optimization.py

+ 1 - 0
kernel/modelverse_jit/cfg_optimization.py

@@ -522,6 +522,7 @@ def optimize(entry_point, jit):
     optimize_graph_flow(entry_point)
     elide_local_checks(entry_point)
     optimize_graph_flow(entry_point)
+    merge_blocks(entry_point)
     eliminate_trivial_phis(entry_point)
     entry_point = cfg_ssa_construction.construct_ssa_form(entry_point)
     if jit.direct_calls_allowed: