Do you mean you plan to implement a generic solution in postreload? I have no objections to dropping this in that case. I'll carry on using the patch in our local 4.5 release (for what it's worth).
-----Original Message----- From: Bernd Schmidt [mailto:ber...@codesourcery.com] Sent: 31 March 2011 16:21 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: [Patch] bfin: move loop invariants out of loop On 03/31/2011 04:16 PM, Henderson, Stuart wrote: > The attached patch attempts to move loop invariants out of loops for Blackfin. > > > 2011-03-31 Stuart Henderson <stuart.hender...@analog.com> > > From Bernd Schmidt > * config/bfin/bfin.c (bfin_gen_bundles): Don't try to bundle a jump. > (bfin_optimize_loops_1, move_loop_constants): New static functions. > (bfin_reorg): Call bfin_optimize_loops_1 if optimizing. I kind of want to do this kind of thing as part of postreload, especially since I recently discovered that we have a cprop pass after loop_invariant that tends to undo all the loop invariant motion. Bernd