Re: Inlining behaviour in GCC

2008-12-30 Thread Richard Guenther
On Tue, Dec 30, 2008 at 1:08 PM, Kristian Spangsege wrote: > Hi > > A simple example (see below) seems to reveal that GCC considers the > unoptimized size of a function rather that the optimized one, when > deciding whether it is small enough to be inlined. In fact, it shows > that GCC does consid

Inlining behaviour in GCC

2008-12-30 Thread Kristian Spangsege
Hi A simple example (see below) seems to reveal that GCC considers the unoptimized size of a function rather that the optimized one, when deciding whether it is small enough to be inlined. In fact, it shows that GCC does consider the optimized size, but optimized based only on its body, not the co