We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e73e43 commit 022f174Copy full SHA for 022f174
1 file changed
ir.py
@@ -853,6 +853,7 @@ def run(self) -> dict[Instr, ConstantLattice]:
853
854
while block_worklist or instr_worklist:
855
if instr_worklist and (instr := instr_worklist.pop(0)):
856
+ instr = instr.find()
857
if isinstance(instr, HasOperands):
858
for operand in instr.operands:
859
if operand not in self.instr_uses:
@@ -872,8 +873,10 @@ def run(self) -> dict[Instr, ConstantLattice]:
872
873
elif isinstance(instr, CondBranch):
874
match self.type_of(instr.operands[0]):
875
case CCBool(True):
876
+ instr.make_equal_to(Jump(instr.conseq))
877
block_worklist.append(instr.conseq)
878
case CCBool(False):
879
+ instr.make_equal_to(Jump(instr.alt))
880
block_worklist.append(instr.alt)
881
case CBottom():
882
pass
0 commit comments