On Thu, May 30, 2013 at 04:20:46PM -0400, Vladimir Makarov wrote: > Investigating size increase of LRA generated code on PPC64 (> 0.2% > on SPEC2006), I found that register usage leveling can hurt > cross-jumping optimization for ppc besides if-conversion one for > targets with conditional execution. > > So I decided to introduce a machine target hook switching on the > optimization (I believe introducing an option would be to much). > The following patch implements it. Currently only x86/x86-64 uses > register usage leveling.
Did you consider providing plugin hooks for that purpose? It might be a good idea, for back-end related plugins (which probably don't exist today). Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***