Skip to content

Conversation

@wenyongh
Copy link
Collaborator

Refine the generated LLVM IRs at each function beginning, so as to fasten the LLVM IR optimization:

  • Only create argv_buf if there are func calls in this function
  • Only create native stack bound if stack bound check is enabled
  • Only create aux stack info if there is op set_global_aux_stack
  • Only create native symbol if indirect_mode is enabled
  • Only create memory info if there are memory operations
  • Only create func_type_indexes if there is op call_indirect

Refine the generated LLVM IRs at each function beginning, so as to
fasten the LLVM IR optimization:
- Only create argv_buf if there are func calls in this function
- Only create native stack bound if stack bound check is enabled
- Only create aux stack info if there is op set_global_aux_stack
- Only create native symbol if indirect_mode is enabled
- Only create memory info if there are memory operations
- Only create func_type_indexes if there is op call_indirect
@wenyongh wenyongh closed this Nov 11, 2022
@wenyongh wenyongh changed the title Merge bytecodealliance:main into wenyongh:main Avoid generating some unused LLVM IRs Nov 11, 2022
@wenyongh wenyongh reopened this Nov 11, 2022
@wenyongh wenyongh merged commit c70e1eb into bytecodealliance:main Nov 14, 2022
@wenyongh wenyongh deleted the refine_llvm_ir branch November 14, 2022 11:06
NingW101 pushed a commit to NingW101/wasm-micro-runtime that referenced this pull request Dec 1, 2022
Refine the generated LLVM IRs at the beginning of each LLVM AOT/JIT function
to fasten the LLVM IR optimization:
- Only create argv_buf if there are func calls in this function
- Only create native stack bound if stack bound check is enabled
- Only create aux stack info if there is opcode set_global_aux_stack
- Only create native symbol if indirect_mode is enabled
- Only create memory info if there are memory operations
- Only create func_type_indexes if there is opcode call_indirect
wenyongh added a commit that referenced this pull request Dec 6, 2022
Refine the generated LLVM IRs at the beginning of each LLVM AOT/JIT function
to fasten the LLVM IR optimization:
- Only create argv_buf if there are func calls in this function
- Only create native stack bound if stack bound check is enabled
- Only create aux stack info if there is opcode set_global_aux_stack
- Only create native symbol if indirect_mode is enabled
- Only create memory info if there are memory operations
- Only create func_type_indexes if there is opcode call_indirect
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Refine the generated LLVM IRs at the beginning of each LLVM AOT/JIT function
to fasten the LLVM IR optimization:
- Only create argv_buf if there are func calls in this function
- Only create native stack bound if stack bound check is enabled
- Only create aux stack info if there is opcode set_global_aux_stack
- Only create native symbol if indirect_mode is enabled
- Only create memory info if there are memory operations
- Only create func_type_indexes if there is opcode call_indirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant