Explorar o código

Fix a bug in check-local-exists elision

jonathanvdc %!s(int64=8) %!d(string=hai) anos
pai
achega
3f36859158
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      kernel/modelverse_jit/cfg_optimization.py

+ 1 - 0
kernel/modelverse_jit/cfg_optimization.py

@@ -132,6 +132,7 @@ def elide_local_checks(entry_point):
                 if dominator_tree.dominates_instruction(local_def, check):
                     # Check is dominated by a definition. Replace it by a 'True' literal.
                     check.redefine(cfg_ir.Literal(True))
+                    is_reachable = True
                     break
                 elif check.block in reachable_blocks[local_def.block]:
                     is_reachable = True