This is the mail archive of the gcc-patches@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: [PATCH] PR 16373: -fomit-frame-pointer when optimizing on x86


Roger Sayle <roger@eyesopen.com> writes:

> Hence, I believe that the correct way to obtain that not insignificant
> 2.5% improvement in SPECint2000 performance above, is for the i386 to
> treat %ebp as a fixed (non general purpose) register in the scheme that
> I described earlier.  This would allow frame pointers to be eliminated
> both from leaf and non-leaf functions, and would resolve the issue
> above of non-call exceptions in a leaf functions (not unusual for gcj).

Since this scheme doesn't make %ebp available as a general register, I
will be very surprised if it actually gets the same 2.5% performance
improvement.

What was wrong with making -fomit-frame-pointer imply
-fasynchronous-unwind-tables?  People concerned with code size can
turn it back off again.

zw


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