[PATCH] D105519: [WebAssembly] Deduplicate imports of the same module name, field name, and type

Nick Fitzgerald via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 6 17:54:47 PDT 2021


fitzgen created this revision.
fitzgen added a reviewer: sbc100.
fitzgen added a project: lld.
Herald added subscribers: ecnelises, sunfish, jgravelle-google, dschuff.
fitzgen requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

When two symbols import the same thing, only one import should be emitted in the Wasm file.

Fixes https://bugs.llvm.org/show_bug.cgi?id=50938


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105519

Files:
  lld/test/wasm/duplicate-function-imports.ll
  lld/test/wasm/duplicate-global-imports.s
  lld/test/wasm/duplicate-table-imports.s
  lld/wasm/SyntheticSections.cpp
  lld/wasm/SyntheticSections.h
  llvm/include/llvm/BinaryFormat/Wasm.h
  llvm/include/llvm/BinaryFormat/WasmTraits.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105519.356845.patch
Type: text/x-patch
Size: 15456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210707/36b39db9/attachment.bin>


More information about the llvm-commits mailing list