-
Notifications
You must be signed in to change notification settings - Fork 749
Enable backend threads pre-compilation for orcv2 JIT #1589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable backend threads pre-compilation for orcv2 JIT #1589
Conversation
Merge bytecodealliance:dev/refactor_llvm_jit into wenyongh:dev/refactor_llvm_jit
Upgrade to ORCv2 APIs (bytecodealliance#1456)
Merge bytecodealliance:dev/refactor_llvm_jit into wenyongh:dev/refactor_llvm_jit
| set_error_buf_v(error_buf, error_buf_size, | ||
| "failed to compile orc jit function: %s", err_msg); | ||
| LLVMDisposeErrorMessage(err_msg); | ||
| bh_print_time("Begin to lookup jit functions"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since CoD creates stub for every function, Lookup will not involve any heavy jobs like compilation or optimization. It may not need to use multiple background thread to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some test, it reduces port of total lookup time, had better add it to startup as quick as we can.
| module->func_ptrs[i] = (void *)func_addr; | ||
| } | ||
|
|
||
| #if WASM_ENABLE_LAZY_JIT == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess we don't need WASM_ENABLE_LAZY_JIT == 0 and join.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is removed, the WASM_ENABLE_LAZY_JIT isn't used, do we want to disable the eager mode?
Enable backend threads pre-compilation for orcv2 JIT (bytecodealliance#1589)
No description provided.