https://issues.dlang.org/show_bug.cgi?id=9785

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Walter Bright <[email protected]> ---
The reason the call to loop() gets inlined and the call to dg(i) does not is
because dg is a function pointer. It is not until the optimizer is run that
dg's value is discovered to be constant, and thus can be inlined.

Unfortunately, fixing this would require moving data flow analysis into the
front end, or inlining into the optimizer, neither of which is simple.

--

Reply via email to