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]:
853
853
854
854
while block_worklist or instr_worklist :
855
855
if instr_worklist and (instr := instr_worklist .pop (0 )):
856
+ instr = instr .find ()
856
857
if isinstance (instr , HasOperands ):
857
858
for operand in instr .operands :
858
859
if operand not in self .instr_uses :
@@ -872,8 +873,10 @@ def run(self) -> dict[Instr, ConstantLattice]:
872
873
elif isinstance (instr , CondBranch ):
873
874
match self .type_of (instr .operands [0 ]):
874
875
case CCBool (True ):
876
+ instr .make_equal_to (Jump (instr .conseq ))
875
877
block_worklist .append (instr .conseq )
876
878
case CCBool (False ):
879
+ instr .make_equal_to (Jump (instr .alt ))
877
880
block_worklist .append (instr .alt )
878
881
case CBottom ():
879
882
pass
You can’t perform that action at this time.
0 commit comments