<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Regression: lld/mac at 203731d2c82 is ~4% slower than lld/mac at 13f439a1872b5"
   href="https://bugs.llvm.org/show_bug.cgi?id=49480">49480</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression: lld/mac at 203731d2c82 is ~4% slower than lld/mac at 13f439a1872b5
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MachO
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>gkm@fb.com, jezreel@gmail.com, llvm-bugs@lists.llvm.org, smeenai@fb.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>1. Download repro zip from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ld64.lld.darwinnew-linked Chromium Framework is somewhat crashy"
   href="show_bug.cgi?id=48657#c0">https://bugs.llvm.org/show_bug.cgi?id=48657#c0</a>

2. Run `time ~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew
@response.txt`, with lld built at different revisions.


On my machine, lld built at 13f439a1872b5 takes about 3.57s. lld built at
203731d2c82 takes about 3.71s. It's not a huge difference, but big enough to be
consistent. (I didn't do ministat tests , but it looks fairly clearly apart).

I tried `git bisect`ing, but didn't succeed. My bisect log is below. Maybe
someone else wants to try if they can repro, and if they have more luck
bisecting.



My lld in this case was built using a regular cmake build, with the following
args (you don't need the C_COMPILER and COMPILER_LAUNCHER stuff; that's just so
I can use a distributed compilation service we have -- in fact, you don't need
any of these, it's mostly a vanilla release build with assertions enabled):


/Applications/CMake.app/Contents/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_ENABLE_PROJECTS='clang;compiler-rt;clang-tools-extra;lld'
-DLLVM_APPEND_VC_REV=NO -DLLVM_TARGETS_TO_BUILD='X86;AMDGPU'
-DCMAKE_C_COMPILER=$PWD/../chrome/src/third_party/llvm-build/Release+Asserts/bin/clang
-DCMAKE_CXX_COMPILER=$PWD/../chrome/src/third_party/llvm-build/Release+Asserts/bin/clang++
-DCMAKE_C_COMPILER_LAUNCHER=$(goma_ctl goma_dir)/gomacc
-DCMAKE_CXX_COMPILER_LAUNCHER=$(goma_ctl goma_dir)/gomacc
-DCMAKE_OSX_SYSROOT=/Users/thakis/src/llvm-project/sysroot/MacOSX.sdk
-DDARWIN_macosx_CACHED_SYSROOT=/Users/thakis/src/llvm-project/sysroot/MacOSX.sdk
-DDARWIN_iphoneos_CACHED_SYSROOT=/Users/thakis/src/llvm-project/sysroot/iPhoneOS.sdk
-DDARWIN_iphonesimulator_CACHED_SYSROOT=/Users/thakis/src/llvm-project/sysroot/iPhoneSimulator.sdk
../llvm-project/llvm



cmake build
git bisect init -- lld


13f439a1872b559d72ee2b5951395310ce4393cc

~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.72s
user 0.80s system 98% cpu 3.581 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.72s
user 0.78s system 98% cpu 3.565 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.70s
user 0.80s system 98% cpu 3.552 total



203731d2c82bc1ba0cfaeb8f3d38e696158ca2cd

ld64.lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.88s
user 0.78s system 98% cpu 3.712 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
ld64.lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.87s
user 0.77s system 98% cpu 3.695 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
ld64.lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.88s
user 0.80s system 97% cpu 3.761 total



7605a9a009b5fa3bdac07e3131c8d82f6d08feb7 both bad and good, went with bad for
now

~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.83s
user 0.75s system 98% cpu 3.635 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.83s
user 0.75s system 97% cpu 3.656 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.84s
user 0.76s system 98% cpu 3.651 total



b99147b4fa7b361fba4eeefdb443dca72b8ee87f

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.68s
user 0.77s system 98% cpu 3.507 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.71s
user 0.77s system 98% cpu 3.528 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.72s
user 0.78s system 97% cpu 3.586 total



5369517d20dd362a178a1b2d6c398d8898ee4620

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.66s
user 0.78s system 98% cpu 3.495 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.66s
user 0.78s system 97% cpu 3.525 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.71s
user 0.79s system 98% cpu 3.548 total



e59d336e75f4670b1a702c2281b3fed27ba4c426

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  3.18s
user 0.87s system 98% cpu 4.091 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  3.14s
user 0.86s system 98% cpu 4.051 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  3.23s
user 0.85s system 98% cpu 4.132 total



d3e8b9fdc0de18ff92764f1be0a9b5a13fbbe9de


thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.71s
user 0.77s system 98% cpu 3.533 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.68s
user 0.77s system 97% cpu 3.537 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.66s
user 0.77s system 98% cpu 3.488 total



0d9b17d0efe065f23b7f1c1f8f2b2b32491abd45 bad-ish

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.96s
user 0.87s system 98% cpu 3.874 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.99s
user 0.86s system 98% cpu 3.903 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  3.03s
user 0.86s system 98% cpu 3.945 total




0ef25cf558bfaffda4820c8b4e4f2a02d52b0334

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.73s
user 0.77s system 98% cpu 3.554 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.69s
user 0.75s system 97% cpu 3.518 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.72s
user 0.77s system 98% cpu 3.545 total



3949a3ed49bbd95235c3c616bf4dbae4ecac48bc

thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.71s
user 0.78s system 98% cpu 3.536 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.75s
user 0.78s system 98% cpu 3.578 total
thakis@MBP chromium_framework % time ~/src/llvm-build-project/bin/ld64.lld
-flavor darwinnew @response.txt
lld: warning: Option `-dead_strip' is not yet implemented. Stay tuned...
~/src/llvm-build-project/bin/ld64.lld -flavor darwinnew @response.txt  2.66s
user 0.76s system 97% cpu 3.504 total</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>