Could you explain a bit more about that code path optimisation? Why wouldn’t the compiler eliminate dead code? It seems like a very haphazard blunt force optimisation method.
https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...
Now it makes sense.