Re: Make simple loop peeling to happen at gimple level

2013-11-19 Thread Jan Hubicka
> 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 we

Re: Make simple loop peeling to happen at gimple level

2013-11-19 Thread Steven Bosscher
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

Make simple loop peeling to happen at gimple level

2013-11-19 Thread Jan Hubicka
Hi, this is update of my 2012 patch to move rtl loop peeling (the one based on profile feedback) to tree level. Peeling expose new optimization oppurtunities and it is good idea to have gimple passes to see them. Moreover we probably want to hook in a new heuristic that use value histograms of lo