[clang] [llvm] [ThinLTO][Split] Split module for parallel compilation in backend (1/N) (PR #198702)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 02:22:12 PDT 2026
================
----------------
mmjjpp wrote:
You're right — since externalize() promotes all local globals to ExternalLinkage + HiddenVisibility above, NeedsConservativeClone checks hasLocalLinkage() which is always false at that point, making it dead code.
My original concern was that some globals might be missed, leading to undefined references. But on reflection, after externalize(), all globals are external and go to partition 0 (via the ShouldCloneDefinition fallback), while other partitions have declarations — which is correct for cross-partition linking.
I've removed the NeedsConservativeClone mechanism entirely, along with the associated cleanup loop in dealWithMpart.
https://github.com/llvm/llvm-project/pull/198702
More information about the llvm-commits
mailing list