[llvm-bugs] [Bug 38650] New: wasm32: Slowdown with large amount of relocations (?)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 20 14:10:31 PDT 2018


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

            Bug ID: 38650
           Summary: wasm32: Slowdown with large amount of relocations (?)
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvm-bugs at lists.llvm.org, sbc at chromium.org

When working with some wasm tools earlier today I realized that for one of our
compilations in rust-lang/rust it takes LLD around 4 seconds to finish. I was
quite surprised at this runtime because typically our linker invocations are
quite speedy (under 1s most of the time, even non-incremental).

A gist [1] contains a tarball with a reproduction script and all the necessary
files and there's also a direct link [2] to the tarball itself. 

I do realize though that this is quite a large test case, there's ~100MB of
input files which is generating ~20MB of an output. I suspect though that there
may be some low hanging fruit to clear out though to improve link time here!


[1]: https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a
[2]:
https://gist.github.com/alexcrichton/cd4736e3faebbc7e45609a8b82a77d2a/raw/e92638fb6f6706c7ada3567e232358cba00993b8/slow-lld-invocation.tar.xz

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180820/fc8df2d4/attachment.html>


More information about the llvm-bugs mailing list