https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |25623
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #7)
> a simple testcase:
> test (int i)
> {
> if (__builtin_expect_with_probability (i > 5, 1, 0.6))
> foo ();
> }
> test2(int i)
> {
> test (i);
> if (__builtin_expect_with_probability (i > 4, 1, 0.7))
> foo ();
> }
> this is can be updated quite easily, but we still fail.
That is exactly bug 25623 comment #1.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25623
[Bug 25623] jump threading/cfg cleanup messes up "incoming counts" for some BBs