[all-commits] [llvm/llvm-project] 1d445a: Reland: "[WebAssembly] Deduplicate imports of the ...

Nick Fitzgerald via All-commits all-commits at lists.llvm.org
Thu Jul 22 14:17:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d445a6e7679cc188fd051f7397b7d9ca8ce4f10
      https://github.com/llvm/llvm-project/commit/1d445a6e7679cc188fd051f7397b7d9ca8ce4f10
  Author: Nick Fitzgerald <fitzgen at gmail.com>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    A lld/test/wasm/duplicate-function-imports.s
    A lld/test/wasm/duplicate-global-imports.s
    A lld/test/wasm/duplicate-table-imports.s
    M lld/wasm/SyntheticSections.cpp
    M lld/wasm/SyntheticSections.h
    M llvm/include/llvm/BinaryFormat/Wasm.h
    M llvm/include/llvm/BinaryFormat/WasmTraits.h

  Log Message:
  -----------
  Reland: "[WebAssembly] Deduplicate imports of the same module name, field name, and type"

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

Reverted in: 16aac493e59519377071e900d119ba2e7e5b525d.

Reviewed By: sbc100

Differential Revision: https://reviews.llvm.org/D105519




More information about the All-commits mailing list