--- Comment #22 from Martin Liška <marxin at gcc dot> ---
Created attachment 41976
Patch candidate

So I believe that problem is hidden in determine_unlikely_bbs where we set
bb->count = profile_count::zero () for:

b ()
  <bb 2> [0.00%] [count: INV]:
  a ();


I think it's not correct and we should set profile_count::guessed_zero ().
Similarly in similar situations in the function. Second problem is at the end
of function where we guard wrongly count assignment with dump_file presence.
That should be also fixed in the patch.
I was able to bootstrap, but ./gcc/testsuite/gcc.dg/compare2.c test-case fails
not. Can you please Honza take a look?

Reply via email to