From f3eb70aac491bc13e0678ba1e33fcc35c9404acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 10 Nov 2026 20:49:09 +0100 Subject: [PATCH] IR interpreter: Keep blocks' profile stats when the block table grows JitBlock's move constructor didn't copy profileStats_, so every time the vector of blocks reallocated, all execution counts and times went back to zero, and --jit-profile under the IR interpreter only counted what ran since. Co-Authored-By: Claude Opus 5.5 --- Core/MIPS/IR/IRJit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/MIPS/IR/IRJit.h b/Core/MIPS/IR/IRJit.h index 9a227a98df..562e08bb82 100644 --- a/Core/MIPS/IR/IRJit.h +++ b/Core/MIPS/IR/IRJit.h @@ -49,6 +49,7 @@ public: origSize_ = b.origSize_; origFirstOpcode_ = b.origFirstOpcode_; numIRInstructions_ = b.numIRInstructions_; + profileStats_ = b.profileStats_; b.entry_ = 0; }