This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make simple loop peeling to happen at gimple level


> On Tue, Nov 19, 2013 at 1:42 PM, Jan Hubicka wrote:
> > The patch also removes simple peeling at RTL level that is mostly obsoleted by
> > gimple level (in few cases in our testsuite the RTL code is able to determine
> > loop bounds better than gimple code, but these seems to be just weird cases that
> > should be handled independently at gimple level)
> 
> No targets that emit small-count loops for block moves?

Well, we have move_by_pieces and set_by_pieces for that reason.  simple peeling
works only for loop with profile, so those expand-generated loop won't count.
I can imagine someone would emit loop with known count small enough so complete
peeling may match.  I would however declare this to be expansion work to choose
proper loop/non-loop consruct in these cases rather than relying on rtl
peeling. It is what happens for i386.

Honza
> 
> Ciao!
> Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]