[PATCH] D57725: [WebAssembly] Implement --trace (-y) and --trace-symbol

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 5 14:35:31 PST 2019


On Tue, Feb 5, 2019 at 2:35 PM Rui Ueyama via Phabricator <
reviews at reviews.llvm.org> wrote:

> ruiu added inline comments.
>
>
> ================
> Comment at: wasm/SymbolTable.cpp:89-90
>      Inserted = true;
> +    if (TraceSymbols.count(Name) != 0)
> +      Sym->Traced = true;
>    }
> ----------------
> Any operation that we do for each symbol can be super expensive, as the
> number of symbols can be in the order of millions. In particular, lld
> should do more than one hash table lookup for each symbol.


s/should/should not/


> This is one of reasons why lld is so fast.
>
> So, this new hash table shouldn't be added. Take a look at
> ELF/SymbolTable.cpp. We implemented this feature without adding a new hash
> table lookup.
>
>
> Repository:
>   rLLD LLVM Linker
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D57725/new/
>
> https://reviews.llvm.org/D57725
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190205/63dd4ecf/attachment.html>


More information about the llvm-commits mailing list