This fixes PR36187.
Patch teaches ThinLTO to drop non-prevailing variables,
just like we recently did for functions (in r323633).
Differential D42798
[ThinLTO] - Fix for "ThinLTO inlines variables that should be discarded". grimar on Feb 1 2018, 8:02 AM. Authored by
Details This fixes PR36187. Patch teaches ThinLTO to drop non-prevailing variables,
Diff Detail Event TimelineComment Actions LGTM with some comment requests below.
|
add a FIXME comment somewhere here that we eventually want to drop dead aliases, but that this needs support in convertToDeclaration. Can you also add a FIXME into convertToDeclaration that alias support is needed for dropDeadSymbols to behave correctly for aliases? It would also be great to file a bug to track the alias handling, similar to the bug you filed for global variables for this patch.