This is an archive of the discontinued LLVM Phabricator instance.

[MergeFunc] Erase unused duplicate functions if they are discardable
ClosedPublic

Authored by vsk on Jan 10 2019, 6:58 PM.

Details

Summary

MergeFunc only deletes unused duplicate functions if they have local
linkage, but it should be safe to relax this to any "discardable if
unused" linkage type.

Diff Detail

Repository
rL LLVM

Event Timeline

vsk created this revision.Jan 10 2019, 6:58 PM
whitequark accepted this revision.Jan 10 2019, 7:26 PM

LGTM, thanks!

This revision is now accepted and ready to land.Jan 10 2019, 7:26 PM
This revision was automatically updated to reflect the committed changes.