This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: New C++ Attribute: final


On Mar 2, 2004, at 4:09 PM, Richard Henderson wrote:
On Tue, Mar 02, 2004 at 06:24:48PM -0500, Daniel Berlin wrote:
It's somewhere down on my list to implement some form of analysis
(RTA/CHA/whatever) to be able to a determine a small set of actual
calls a given virtual call can make.

We'll want to adjust the IL to make this easier for you. For instance, use a METHOD_CALL_EXPR instead of a CALL_EXPR with the vtable lookup junk pre-expanded. Or something.

There are wins to be had by analyzing indirect calls in C,
also, for example on the gap SPECmark. What you want to do there is
find the hot indirect calls and the hot calls that actually get made via feedback,
and pull out the common cases and inline them.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]