https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122768
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Josef Melcr <[email protected]>: https://gcc.gnu.org/g:0343c45a3387ac5e1e365c97e56ea8305ba67016 commit r16-5465-g0343c45a3387ac5e1e365c97e56ea8305ba67016 Author: Josef Melcr <[email protected]> Date: Thu Nov 20 23:46:38 2025 +0100 ipa: Rewrite callback_edge_useful_p heuristic. This function is used to determine whether a callback edge should be kept or not. It was supposed to capture the idea that a callback edge has been redirected at some point, however, it only considered redirecting to some clone. However, an edge may not always be redirected to a clone. For example, common function bodies produced by icf are not clones. This version of this function should cover all cases, at least for the time being. gcc/ChangeLog: PR ipa/122768 * attr-callback.cc (callback_edge_useful_p): Rewrite the heuristic, now consider clones as well as icf bodies. Signed-off-by: Josef Melcr <[email protected]>
