On Mon, Nov 7, 2011 at 4:53 AM, Olivier Hainque <hain...@adacore.com> wrote:
> There are lots of subtle inter-section dependencies and redundancies > in emit_epilogue, which has grown pretty difficult to understand IMHO. > > I can see two tracks to improve things in this area: > > - Concentrate on the sp-move problem at hand and get to an agreement > on the proper correction for it. I'll be happy to send my current > patch with comments and questions for that. > > - Start working on reducing emit_epilogue's complexity, e.g. by first > extracting portions of it out into separate functions, then see what > concepts we can identify and materialize to simplify the sequence > organization as a whole. > > I did an extraction attempt as an exercise to better understand the > various sections and dependencies. It did help me and I'd be happy > to provide patches gather feedback etc if you believe it might be > useful to others. Refactoring the prologue and epilogue code in rs6000.c would be great and welcomed. Thanks, David