In particular, we shouldn't make assumptions about globals which are unnamed_addr: we can fold them together with other globals.
Also while I'm here, use isInterposable() instead of trying to explicitly name all the different kinds of weak linkage.
Differential D87123
[ConstantFold] Make areGlobalsPotentiallyEqual less aggressive. Authored by efriedma on Sep 3 2020, 9:11 PM.
Details In particular, we shouldn't make assumptions about globals which are unnamed_addr: we can fold them together with other globals. Also while I'm here, use isInterposable() instead of trying to explicitly name all the different kinds of weak linkage.
Diff Detail
Event TimelineComment Actions LGTM, thanks!
| ||||||