> > Second question is - When to put info on the disk? Few alternatives, > > 1) Before gimplfication > > 2) Before optimizing tree-ssa > > 3) After tree-ssa optimization is complete > > 4) Immediately after generating RTL > > 5) Halfway throuh RTL passes > > etc.. And answer to this question largely depend on the optimization > > passes that work on whole program info. > > I would think one would want to put the info out before optimizing > tree-ssa since you would hope that the IPO data from other modules would > let you do better tree-ssa optimizations.
Actually, you want to do it right after what the ipa-branch does early-optimizations. That will write out a cleaned up IL that has had CCP and DCE run on it. We discussed almost *all* of this stuff at the summit. There are people working on detailed plans for IPA (Mark Mitchell and Ken Zadeck). You really should email or call them and find out what they are doing.