Taddeus Kroes преди 14 години
родител
ревизия
77882011ea
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/liveness.py

+ 1 - 1
src/liveness.py

@@ -34,7 +34,7 @@ def is_reg_dead_after(reg, block, index, known_jump_targets=[]):
 
     # If dead within the same block, check if the register is in the block's
     # live_out set
-    return reg in RESERVED_DEF or reg not in block.live_out
+    return reg not in RESERVED_DEF and reg not in block.live_out
 
 
 def create_use_def(block):