Skip to content

Commit 0f9d9e9

Browse files
committed
When doing UnsignedCmpPeep, insert bytecode uses before the branch/compare instruction. OS#17686612
1 parent 153b5c6 commit 0f9d9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/FlowGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3958,7 +3958,6 @@ bool FlowGraph::UnsignedCmpPeep(IR::Instr *cmpInstr)
39583958
}
39593959

39603960
IR::ByteCodeUsesInstr * bytecodeInstr = IR::ByteCodeUsesInstr::New(cmpInstr);
3961-
cmpInstr->InsertAfter(bytecodeInstr);
39623961

39633962
if (cmpSrc1 != newSrc1)
39643963
{
@@ -3997,6 +3996,7 @@ bool FlowGraph::UnsignedCmpPeep(IR::Instr *cmpInstr)
39973996
}
39983997
}
39993998

3999+
cmpInstr->InsertBefore(bytecodeInstr);
40004000
return true;
40014001
}
40024002

0 commit comments

Comments
 (0)