This is the mail archive of the gcc-bugs@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]

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


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?


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