[PATCH] D120377: [lld-macho] Implement -why_live (without perf overhead)
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 18:02:04 PST 2022
int3 created this revision.
Herald added a subscriber: dang.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This was based off @thakis' draft in D103517: NOT FOR REVIEW: [lld/mac] why_live sketch <https://reviews.llvm.org/D103517>. I employed templates to ensure
the support for `-why_live` wouldn't slow down the regular non-why-live code
path.
No stat sig perf difference on my 3.2 GHz 16-Core Intel Xeon W:
base diff difference (95% CI)
sys_time 1.195 ± 0.015 1.199 ± 0.022 [ -0.4% .. +1.0%]
user_time 3.716 ± 0.022 3.701 ± 0.025 [ -0.7% .. -0.1%]
wall_time 4.606 ± 0.034 4.597 ± 0.046 [ -0.6% .. +0.2%]
samples 44 37
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120377
Files:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/MarkLive.cpp
lld/MachO/Options.td
lld/test/MachO/why-live.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120377.410687.patch
Type: text/x-patch
Size: 12667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220223/a7771bda/attachment.bin>
More information about the llvm-commits
mailing list