This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: empty function optimizations
- To: jbuck at racerx dot synopsys dot com
- Subject: Re: empty function optimizations
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 12 Jul 2000 22:51:16 +0200
- CC: ken at gesn dot com, gcc at gcc dot gnu dot org
- References: <200007121953.MAA03991@racerx.synopsys.com>
> But that fix won't accomplish much, because in almost all cases, the
> instantiations will appear to depend on the template parameters,
> e.g. vector<A*> and vector<B*> will generate the same code, but all
> the methods will depend on the type argument.
Here is an (probably incomplete, perhaps incorrect) list of vector
methods that don't depend on the template parameter:
get_allocator
begin (2x)
end
empty
front
back
So while it is not clear how much that would save, it is certainly
incorrect that there would be no savings.
Regards,
Martin