mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
change the threshold
This commit is contained in:
parent
fce7d7eed2
commit
4e6ab09f30
|
@ -5453,7 +5453,7 @@ lookupswitch_r(JitCompContext *cc, x86::Assembler &a, bh_list *jmp_info_list,
|
|||
int32 label_dst = 0;
|
||||
char *stream;
|
||||
|
||||
if (opnd->match_pairs_num < 5) {
|
||||
if (opnd->match_pairs_num < 10) {
|
||||
/* For small count of branches, it is better to compare
|
||||
the key with branch value and jump one by one */
|
||||
for (i = 0; i < opnd->match_pairs_num; i++) {
|
||||
|
@ -5472,7 +5472,6 @@ lookupswitch_r(JitCompContext *cc, x86::Assembler &a, bh_list *jmp_info_list,
|
|||
|
||||
imm.setValue(INT32_MAX);
|
||||
a.je(imm);
|
||||
a.nop();
|
||||
}
|
||||
|
||||
if (opnd->default_target) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user