[jit] Support simple trans/exec measurement - #31
Draft
derzhavin3016 wants to merge 17 commits into
Draft
Conversation
* Optimizations have been made to instructions affecting PCs * Removed the per-block entry PC load and the per-instruction PC increment/store. * Applied to ir, mir, llvm, tpde, lightning, xbyak, asmjit. * xbyak additionally batches the icount update.
Chain translated blocks directly instead of returning to the C++ dispatcher after each block. A shared direct-mapped TB-cache probe is emitted inline at block exit; on hit the successor is entered without a dispatcher round-trip. - ir, llvm: true tail-call (ir_TAILCALL / musttail) - mir, lightning, xbyak, asmjit: stores the successor pointer into next_tb and the dispatcher's do/while loop calls it (safe tail-call w/o overflow). - tpde: no block chaining now. Shared LLVM builder is parametrized by so llvm gets MustTail while tpde gets None.
On tailcall-chained backends (llvm, ir) the outgoing PC is now passed directly into the TB-cache probe instead of being reloaded from memory, and cpu.pc is stored only on paths that return to the dispatcher (miss / finished / JALR), not on the chained-hit path.
Replace C-style casts with static_cast
* Collect statistics into JSON file option was added * Interpret stage measurements was added
* Introduced new metrics host cycles (compilation) / translated icount * Introduced new metrics host cycles (execution) / total icount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.