File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -853,6 +853,7 @@ def run(self) -> dict[Instr, ConstantLattice]:
853853
854854 while block_worklist or instr_worklist :
855855 if instr_worklist and (instr := instr_worklist .pop (0 )):
856+ instr = instr .find ()
856857 if isinstance (instr , HasOperands ):
857858 for operand in instr .operands :
858859 if operand not in self .instr_uses :
@@ -872,8 +873,10 @@ def run(self) -> dict[Instr, ConstantLattice]:
872873 elif isinstance (instr , CondBranch ):
873874 match self .type_of (instr .operands [0 ]):
874875 case CCBool (True ):
876+ instr .make_equal_to (Jump (instr .conseq ))
875877 block_worklist .append (instr .conseq )
876878 case CCBool (False ):
879+ instr .make_equal_to (Jump (instr .alt ))
877880 block_worklist .append (instr .alt )
878881 case CBottom ():
879882 pass
You can’t perform that action at this time.
0 commit comments