[ping patch] Predict for loop exits in short-circuit conditions

Jan Hubicka hubicka@ucw.cz
Mon Oct 8 09:04:00 GMT 2012


> On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen <dehao@google.com> wrote:
> > Attached is the updated patch. Yes, if we add a VRP pass before
> > profile pass, this patch would be unnecessary. Should we add a VRP
> > pass?
> 
> No, we don't want VRP in early optimizations.

I am not quite sure about that.  VRP
 1) makes branch prediction work better by doing jump threading early
 2) is, after FRE, most effective tree pass on removing code by my profile
    statistics.

But that would require more analysis.
The patch is OK.
Honza



More information about the Gcc-patches mailing list