https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123070

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|rtl-optimization            |middle-end

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
;;   basic block 7, loop depth 0, count 52738306 (estimated locally, freq
0.4591), maybe hot
;;   Invalid sum of incoming counts 59055800 (estimated locally, freq 0.5141),
should be 52738306 (estimated locally, freq 0.4591)
;;    prev block 2, next block 3, flags: (NEW)
;;    pred:       2 [5.5% (guessed)]  count:6317494 (estimated locally, freq
0.0550) (FALSE_VALUE,EXECUTABLE)
;;                5 [5.5% (guessed)]  count:52738306 (estimated locally, freq
0.4591) (FALSE_VALUE,EXECUTABLE)
  goto <bb 6>; [100.00%]
;;    succ:       6 [always]  count:52738306 (estimated locally, freq 0.4591)
(FALLTHRU)


vs
;;   basic block 6, loop depth 0, count 59055800 (estimated locally, freq
0.5141), maybe hot
;;    prev block 5, next block 7, flags: (NEW, REACHABLE, VISITED)
;;    pred:       5 [5.5% (guessed)]  count:52738306 (estimated locally, freq
0.4591) (FALSE_VALUE,EXECUTABLE)
;;                2 [5.5% (guessed)]  count:6317494 (estimated locally, freq
0.0550) (FALSE_VALUE,EXECUTABLE)
  __asm__("" : "=r" r_8 : "0" 0B);
;;    succ:       7 [always]  count:59055800 (estimated locally, freq 0.5141)
(FALLTHRU,EXECUTABLE) /app/example.cpp:14:10


BB count is incorrect. Maybe that is causing issues. In this case the counts of
the edges should be additive.

Let me see if that fixes the issue.

Reply via email to