On Wednesday, 22 April 2015 at 21:59:48 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 22 April 2015 at 20:36:12 UTC, John Colvin wrote:
Is it even possible to contrive a case where
1) The default initialisation stores are technically dead and
2) Modern compilers can't tell they are dead and elide them and
3) Doing the initialisation has a significant performance
impact?
The boring example is "extra code causes instruction cache
misses".
Allocation of large arrays.
That doesn't really answer the question without some more
context. Can you give a specific example where all 3 points are
satisfied?