"Meta" <[email protected]> wrote in message news:[email protected]... >I'm not an expert on how DMD works, but could this possibly be done after >the native code is generated, but before optimizations are performed? Just >throwing out ideas.
The obvious place to do this is at link time - then you get to fold all functions from all compilation units. It becomes something similar to string constant pooling - you fold sections/data based on content, not labels.
