Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DWARFLinker] Only extract unit DIEs when cloning clang modules #69495

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

JDevlieghere
Copy link
Member

Reduce memory usage by only extract unit DIEs when cloning clang modules. We don't need the full debug info yet at this stage. This reduces peak memory usage of dsymutil when linking the swift driver by multiple gigabytes.

Reduce memory usage by only extract unit DIEs when cloning clang
modules. We don't need the full debug info yet at this stage. This
reduces peak memory usage of dsymutil when linking the swift driver by
multiple gigabytes.
Copy link
Collaborator

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that is a very straightforward optimization!

@JDevlieghere JDevlieghere merged commit 077d89f into llvm:main Oct 18, 2023
3 checks passed
@JDevlieghere JDevlieghere deleted the dsymutil-unit-dies-only branch October 18, 2023 21:52
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Oct 18, 2023
…#69495)

Reduce memory usage by only extract unit DIEs when cloning clang
modules. We don't need the full debug info yet at this stage. This
reduces peak memory usage of dsymutil when linking the swift driver by
multiple gigabytes.

rdar://117156180
(cherry picked from commit 077d89f)
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Oct 18, 2023
[DWARFLinker] Only extract unit DIEs when cloning clang modules (llvm#69495)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants