[Bug ipa/58721] [4.9 Regression] The subroutine perdida is no longer inlined in fatigue.f90

hubicka at ucw dot cz gcc-bugzilla@gcc.gnu.org
Tue Dec 10 09:20:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58721

--- Comment #14 from Jan Hubicka <hubicka at ucw dot cz> ---
> Actually, I would argue that the middle-end should be smart enough to give a
> branch that is guaranteed to never return a negligible probability (independent
> of the builtin_expect). It can only be mis-predicted once.

For predicting branches, we have gimple predict_stmt.
If we need to annotate values with higher probability, I will implement the
extension
into bulitin_expect to handle them.
(i.e. adding internal only second argument specifying the predictor)
Sounds sane?



More information about the Gcc-bugs mailing list