On 12/9/2013 10:50 AM, H. S. Teoh wrote:
Does this currently only happen inside a single expression? Any plans to
have the optimizer recognize pure calls in separate (but identical)
expressions? Jacob's example seems like it *should* be easily detected:

        int a = pureFunc(a,b,c);
        int b = pureFunc(a,b,c); // should elide this second call

Certainly more can be done, as with many other optimizations, but I haven't been able to spend much time on it.

Reply via email to