> > Will that work on other targets? > Well, this is the only point I am a bit concerned too. In general I > wouldn't expect here any issues to run peephole after scheduling, as > peephole doesn't do anything a new run of ira/lra would require.
My concern is that peepholes are rather fragile, so imho it is not inconceivable that some target will generate wrong code when you add an extra (later) peephole pass. Of course, we are in stage1. My other concern is that running peepholes again after scheduling could easily generate worse code. So I think the effect of this change on other targets needs to be evaluated. > Anyway it would be good if a global maintainer could comment on that. Yes :-) Segher