This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Implement --icf=fbsafe that is more similar to ld64's -deduplicate_safe
AbandonedPublic

Authored by int3 on Sep 16 2022, 12:53 PM.

Details

Reviewers
kyulee
ributzka
Group Reviewers
Restricted Project
Summary

--icf=safe gives us results that are way too conservative. Ideally
we'd like to fix that, but it's probably non-trivial, and would affect
ELF targets too (since the logic to mark things as address-significant
in MC isn't arch-specific).

As such, this diff implements an approach that is very similar to what
is currently available in ld64.

Test Plan:

Diff Detail

Event Timeline

int3 created this revision.Sep 16 2022, 12:53 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
int3 requested review of this revision.Sep 16 2022, 12:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 12:53 PM
int3 abandoned this revision.Sep 16 2022, 12:56 PM