This is the mail archive of the gcc-bugs@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]

[Bug target/43884] [4.4/4.5/4.6 Regression] Performance degradation for simple fibonacci numbers calculation due to extra stack alignment



------- Comment #10 from hjl dot tools at gmail dot com  2010-04-26 13:44 -------
(In reply to comment #9)
> In the leaf_function_p sense it is non-leaf.  For the stack alignment it of
> course would be possible to change the stack alignment requirements of the
> function if it calls itself, doesn't call other functions (nor tail call them)
> and it is changed not to assume the standard alignment in the whole function.
> 

That is true. For tail call, we only need to align outgoing stack to
minimum of maximum local stack alignment and incoming stack alignment.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43884


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