RFC: New C++ Attribute: final

Dale Johannesen dalej@apple.com
Wed Mar 3 00:23:00 GMT 2004


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.



More information about the Gcc mailing list