[Bug 73] Functions used to initialize variables are not inlined.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 25 10:34:23 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=73
------- Comment #3 from unknown at simplemachines.org 2006-03-25 12:34 -------
Created an attachment (id=8)
--> (http://d.puremagic.com/bugzilla/attachment.cgi?id=8&action=view)
Add a basic scan to DeclarationExp.
AFAICT, that's exactly what adding a scan in there does. I'm just compiling
DMD without backend hooks, but I can see with my changes that it now wants to
inline things (by turning on CANINLINE_LOG.)
It's just calling the inline stuff on ExpInitializer's exp, which is probably
an AssignExp or something, which is a BinExp, which then has the CallExp
checked, which then finally gets inlined.
I'm just worried it wasn't added because it might cause fallout. I don't
really know the code base, so I'm not privy to what fallout might be caused.
Anyway, here's a patch that shows what I changed to enable inlining in these
cases. If I had the time on my hands, I might try running DStress with this
patch on gdc, to see if it causes any regressions.
-[Unknown]
--
More information about the Digitalmars-d-bugs
mailing list