[PATCH] D40989: [WebAssembly] De-dup indirect function table

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 15:54:51 PST 2017


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.

Create the indirect function table based on symbols rather
than just duplicating the input entries.  This has the
effect of de-duplicating the table.

This is a followup to the equivalent change made for globals:

  https://reviews.llvm.org/D40859

Parially based on a patch by Nicholas Wilson:

  https://reviews.llvm.org/D40845


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D40989

Files:
  test/wasm/Inputs/call-indirect.ll
  test/wasm/call-indirect.ll
  wasm/InputFiles.cpp
  wasm/InputFiles.h
  wasm/Symbols.cpp
  wasm/Symbols.h
  wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40989.126066.patch
Type: text/x-patch
Size: 14039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171207/f09166ec/attachment-0001.bin>


More information about the llvm-commits mailing list