This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: basic-block and profile-based optimizing (was Re: New attribute"infrequent"?)
- To: Scott A Crosby <crosby at qwes dot math dot cmu dot edu>, Andreas Jaeger <aj at suse dot de>
- Subject: Re: basic-block and profile-based optimizing (was Re: New attribute"infrequent"?)
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 01 Sep 2001 15:51:14 -0700
- cc: David Edelsohn <dje at watson dot ibm dot com>, Jan Hubicka <jh at suse dot cz>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "pfk at fuchs dot offl dot uni-jena dot de" <pfk at fuchs dot offl dot uni-jena dot de>
> I don't think that adding such an attribute-mechanism to a library
> interface is all that necessary, nor will it be worth the work and
> maintance.
I strongly agree.
I think that sometimes we try to invent new techinques for
dealing with old problems. The cold hard reality of the situation is
that people have been building compilers that often generate better
code than GCC for quite a while without using anything similar
to this attribute, to the best of my knowledge.
That doesn't mean we shouldn't add it, necessary -- perhaps we are
cleverer than other implementors, or have found a new and different
way to solve a problem -- but I believe that generally we are better
off imitating best existing practice. If Sun, HP, IBM, and Intel
can all get by without it, and still generate good code, then
probably we can too.
Do any other compiler vendors have such an attribute?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com