This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inconsistent gcc performance on this code


On Sun, Jul 18, 2004 at 12:02:43PM -0400, Jason Papadopoulos wrote:
> Compiling fgt5b with '-O3 -fomit-frame-pointer' generates
> code that runs ~20% faster and is ~25% smaller than fgt5a.
> The only difference between the two files is that 5a
> writes each result to a different variable, while 5b
> sometimes reuses the same set of 8 variables for common
> (temporary) operations.

You may want to compare the output of GCC HEAD (pre-3.5) on both files.
SSA form excels at this sort of splitting.

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]