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

Mark globals that aren't used in a different partition as internal #50752

Closed
wants to merge 2 commits into from

Conversation

pchintalapudi
Copy link
Member

This might help with #50729 (comment), if the issue is actually that COFF doesn't like large numbers of external hidden symbols. It helps less as the number of threads increases, but the fallback is to compile with fewer image threads, which will restore a binary that has an extremely limited subset of external symbols.

@pchintalapudi pchintalapudi added compiler:codegen Generation of LLVM IR and native code compiler:llvm For issues that relate to LLVM labels Aug 1, 2023
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

SGTM, though the verifier is not currently happy with this

@pchintalapudi
Copy link
Member Author

Since we've resolved this by requiring a single thread for COFF output when there are lots of symbols, I'm closing this as it results in undefined symbols in the generated dynamic library.

@giordano giordano deleted the pc/internalize branch February 25, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code compiler:llvm For issues that relate to LLVM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants