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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D56574
[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
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 10 2019, 7:26 PM Closed by commit rL350939: [MergeFunc] Erase unused duplicate functions if they are discardable (authored by vedantk). · Explain WhyJan 11 2019, 10:00 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 181303 llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
llvm/trunk/test/Transforms/MergeFunc/linkonce_odr.ll
|