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]

Any trick to avoid code bloat with tail call optimization?


Hi,

I have a question about the sibling/tail call optimization.  How does
one avoid code bloat when a function 1) must restore several registers
in an epilogue and 2) has multiple tail calls within the function?
The tail call optimization is done quite early in the series of RTL
optimizations, so TARGET_FUNCTION_OK_FOR_SIBCALL does not know what an
epilogue will look like.  Is there a convenient way to get the number
of tail calls within a function?

Thanks,

Kazu Hirata


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