Skip to content

Commit

Permalink
use a constant threshold to see load-from-table overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jun 13, 2023
1 parent c605057 commit cd5880e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/iwasm/compilation/aot_llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ aot_add_precheck_function(AOTCompContext *comp_ctx, LLVMModuleRef module,
/*
* load the value for this wrapped function from the stack_sizes array
*/
#if 0
LLVMValueRef func_index_const = I32_CONST(func_index);
LLVMValueRef sizes =
LLVMBuildBitCast(b, comp_ctx->stack_sizes, INT32_PTR_TYPE, "sizes");
Expand All @@ -241,6 +242,9 @@ aot_add_precheck_function(AOTCompContext *comp_ctx, LLVMModuleRef module,
else {
size = size32;
}
#else
LLVMValueRef size = I64_CONST(8192);
#endif
/*
* calculate new sp
*/
Expand Down

0 comments on commit cd5880e

Please sign in to comment.