Hi,

On Mon, Sep 21 2026, Josef Melcr wrote:
> This patch adds a new predicate called callback_with_carrying_edge_p,
> which returns true if a callback edge *should* have a carrying edge
> bound to it.  This predicate was suggested by Martin, to hide the
> somewhat confusing checking of assume_function and to capture the
> meaning of the check in more detail.
>
> gcc/ChangeLog:
>
>       * cgraph.cc (cgraph_node::get_edge): Use callback_with_carrying_edge_p.
>       (cgraph_edge::set_call_stmt): Likewise.
>       (cgraph_edge::callback_with_carrying_edge_p): Add implementation.
>       (cgraph_edge::redirect_call_stmt_to_callee): Use
>       callback_with_carrying_edge_p.
>       * cgraph.h: Add method callback_with_carrying_edge_p, returns
>       TRUE if THIS is a callback edge with an existing
>       callback-carrying edge.

Well, if I suggested it, it of course must be great :-)

OK, thanks.

Martin

Reply via email to