From 81e24a9fee1f25a1a5d87274b4c38ebb44ebdd76 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 20 Aug 2023 22:12:12 -0700 Subject: [PATCH] irjit: Fix regalloc clobber on exit. --- Core/MIPS/IR/IRAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/IR/IRAnalysis.cpp b/Core/MIPS/IR/IRAnalysis.cpp index 22bdada374..e27554d712 100644 --- a/Core/MIPS/IR/IRAnalysis.cpp +++ b/Core/MIPS/IR/IRAnalysis.cpp @@ -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; }