This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Small object optimizations
On Thu, Oct 10, 2002 at 11:15:47AM +0200, Richard Guenther wrote:
> For decent C++ performance wrt abstraction of small objects g++ lacks
> optimization regarding to optimizing away memory bindings to such objects
> like in:
>
> struct simple {
> simple& operator+(int k) { i+=k; j+=k; return *this; }
> int i, j
> };
Currently we can only optimize this if the object is smaller
than the word size on the machine. The tree-ssa branch optimizations
will be able to address this generically.
r~