This is an archive of the discontinued LLVM Phabricator instance.

COFF: Stop requiring comdat sections to have an external leader to participate in ICF.
ClosedPublic

Authored by pcc on Nov 19 2017, 11:47 PM.

Details

Summary

This requirement was added in r254578 to fix pr25686. However, it
appears to have originated from a misdiagnosis of the problem: link.exe
refused to merge the two sections because they are non-executable,
not because they have internal leaders. If I set up a similar scenario
with functions instead of globals I see that link.exe merges them.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Nov 19 2017, 11:47 PM
ruiu accepted this revision.Nov 20 2017, 1:50 AM

LGTM

This revision is now accepted and ready to land.Nov 20 2017, 1:50 AM
This revision was automatically updated to reflect the committed changes.