This is the mail archive of the
mailing list for the GCC project.
Re: inlining inefficiencies
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Kurt Garloff <garloff at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 30 May 2002 12:25:28 +0200
- Subject: Re: inlining inefficiencies
- References: <20020530111406.C13617@gum01m.etpnet.phys.tue.nl>
Kurt Garloff wrote:
>The problem that I spotted in gcc is that it's unable to remove
>temporaries too often. I have some Matrix class whose  operator
>return a temporary object, basically having a pointer to the
>Matrix and the information which line was selected. This can
>be used to create a Vector or an element with a second  and
>the temporary should be removed by the compiler.
>The EDG compilers succeed doing so, gcc not :-(
>Somebody want some demo code?
IMO it would be very interesting if you could post some demo code and a
detailed comparison between the generated assembly. Probably, you should
also file a PR, to make sure this information will not get lost.