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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Predictions for bb 2
  DS theory heuristics: 33.00%
  combined heuristics: 33.00%
  call heuristics of edge 2->3: 33.00%

so it seems it's about "conditional call" which is reasonable I think.

Doing

void use2(int *);
int x = 1;
void foo(bool cond, int * p)
{
    if (cond) {
        x = 1;
    }
    use2(p);
}

shows even probabilities, so does

  if (cond) use1 (p); else use2 (p);

Reply via email to