Merge pull request #17942 from unknownbrackets/irjit-clobber

irjit: Fix regalloc clobber on exit
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-08-21 08:04:50 +02:00
commit 61bf366d30
1 file changed
+2 -2
+2 -2
View File
@@ -42,9 +42,9 @@ static bool IRReadsFrom(const IRInst &inst, int reg, char type, bool *directly)
if (directly)
*directly = false;
if (inst.op == IROp::Interpret || inst.op == IROp::CallReplacement || inst.op == IROp::Syscall || inst.op == IROp::Break)
if (inst.op == IROp::Interpret || inst.op == IROp::CallReplacement)
return true;
if (inst.op == IROp::Breakpoint || inst.op == IROp::MemoryCheck)
if ((m->flags & IRFLAG_EXIT) != 0)
return true;
return false;
}