This is an archive of the discontinued LLVM Phabricator instance.

[LTO][Legacy] Use the same defaults as non-legacy LTO
AbandonedPublic

Authored by glandium on Oct 12 2022, 1:59 AM.

Details

Reviewers
pcc
Summary

The main motivation is that the transition to opaque pointers relies on
LTOLLVMContext setting the default from lto::Config, but legacy LTO is
not using that and that can cause problems linking objects produced by
clang that does use opaque pointers by default.

It seems to make sense for defaults to align between legacy and
non-legacy LTO more generally.

Fixes #57734

Diff Detail

Event Timeline

glandium created this revision.Oct 12 2022, 1:59 AM
glandium requested review of this revision.Oct 12 2022, 1:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 1:59 AM

Looks like this break lots of tests which all needs to be updated. Need to look at what other defaults are changed.

Also please summarize the change and add the motivation/reason to the commit message.

glandium updated this revision to Diff 467311.Oct 12 2022, 5:23 PM

Added a null check.

glandium edited the summary of this revision. (Show Details)Oct 12 2022, 5:24 PM
glandium edited the summary of this revision. (Show Details)
glandium abandoned this revision.Oct 19 2022, 7:10 PM