Reset the performance counters at the start of the each block.

This commit is contained in:
skidau committed 2012-05-01 20:42:01 +10:00
1 parent 389823a749
commit d557c913e8
2 files changed
+4

No files matched your search

@@ -477,6 +477,8 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.curBlock = b;
js.block_flags = 0;
js.cancel = false;
jit->js.numLoadStoreInst = 0;
jit->js.numFloatingPointInst = 0;
// Analyze the block, collect all instructions it is made of (including inlining,
// if that is enabled), reorder instructions for optimal performance, and join joinable instructions.
@@ -551,6 +551,8 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.fifoBytesThisBlock = 0;
js.curBlock = b;
js.cancel = false;
jit->js.numLoadStoreInst = 0;
jit->js.numFloatingPointInst = 0;
// Analyze the block, collect all instructions it is made of (including inlining,
// if that is enabled), reorder instructions for optimal performance, and join joinable instructions.