Enable existing summary-based importing support in the gold-plugin.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
(Forgot to click submit in phab)
lib/Transforms/IPO/FunctionImport.cpp | ||
---|---|---|
534 ↗ | (On Diff #59966) | Note: we plan to change the alias representation to https://llvm.org/bugs/show_bug.cgi?id=27866 ; which I believe will make this issue obsolete. It may even remove the need for the aliases representation in the summary (not sure what are the implications about comdats). Also, this seems like a bug fix that could be exposed with llvm-lto, and thus be split out of this patch? |
lib/Transforms/IPO/FunctionImport.cpp | ||
---|---|---|
534 ↗ | (On Diff #59966) | Ok, I can add a FIXME to reevaluate this after that bug is fixed. Let me see if I can provoke this with llvm-lto and split it out. |
tools/gold/gold-plugin.cpp | ||
1326 ↗ | (On Diff #59966) | Yes, will switch. |
1367 ↗ | (On Diff #59966) | Not that I could find in either StringSet or DenseSet. |
lib/Transforms/IPO/FunctionImport.cpp | ||
---|---|---|
534 ↗ | (On Diff #59966) | Can't reproduce with llvm-lto. I think it is specific to the way the gold plugin handles setting up the list of symbols to link in (it doesn't link in the preempted weak symbol). |