[PATCH] D108345: [WebAssembly] Avoid unused function imports in PIC mode
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 18 16:59:58 PDT 2021
sbc100 created this revision.
Herald added subscribers: wingo, ecnelises, sunfish, jgravelle-google, dschuff.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
In PIC mode we import function address via `GOT.mem` imports but for
direct function calls we still import the first class function.
However, if the function is never directly called we can avoid the first
class import completely.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108345
Files:
lld/test/wasm/shared.s
lld/test/wasm/shared64.s
lld/wasm/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108345.367363.patch
Type: text/x-patch
Size: 4518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/55d12c1d/attachment.bin>
More information about the llvm-commits
mailing list