[PATCH] D140111: [lld][wasm] Split __wasm_apply_data_relocs when it exceeds the function size limit
Illia Malachyn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 03:39:39 PST 2022
k1nder10 updated this revision to Diff 483898.
k1nder10 added a comment.
[lld][wasm] Split __wasm_apply_data_relocs when it exceeds the function size limit
__wasm_apply_data_relocs can grow drastically exceeding the function size limit.
This change introduces __wasm_apply_data_relocs_tail function which is supposed
to include instructions that caused the limit hit. __wasm_apply_data_relocs
calls __wasm_apply_data_relocs_tail at the end of the function body.
__wasm_apply_data_relocs_tail is empty if wasm module doesn't hit the function
size limit.
discussed here:
https://github.com/llvm/llvm-project/issues/55608
https://github.com/emscripten-core/emscripten/discussions/17374
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140111/new/
https://reviews.llvm.org/D140111
Files:
lld/test/wasm/data-segments.ll
lld/test/wasm/pie.ll
lld/test/wasm/shared-weak-symbols.s
lld/test/wasm/shared.s
lld/test/wasm/shared64.s
lld/test/wasm/tls-export.s
lld/test/wasm/tls-non-shared-memory.s
lld/test/wasm/unresolved-symbols-dynamic.s
lld/wasm/CMakeLists.txt
lld/wasm/Config.h
lld/wasm/Driver.cpp
lld/wasm/FunctionSplitter.h
lld/wasm/SplitApplyDataRelocsStrategy.cpp
lld/wasm/SplitApplyDataRelocsStrategy.h
lld/wasm/SplitStrategy.h
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h
lld/wasm/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140111.483898.patch
Type: text/x-patch
Size: 115971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221219/f71521fd/attachment.bin>
More information about the llvm-commits
mailing list