On Sunday, 4 September 2016 at 08:57:15 UTC, Martin Nowak wrote:
On Saturday, 3 September 2016 at 18:06:37 UTC, Dicebot wrote:
There are enough ways to leak access to private entity (alias,
template argument, taking address, some compile-time
introspection) to make such optimizations impossible without
extensive program analysis.
Agreed that such optimizations would require quite some front-end
additions (keeping track if anything aliases or escapes the
symbol), so it might not be worth with the current state of LTO.