[gcc r17-3349] ipa: Remove check for internal calls

Josef Melcr via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:e75ce09614641c7d6ddb28727bf4dc807f0ca70c

commit r17-3349-ge75ce09614641c7d6ddb28727bf4dc807f0ca70c
Author: Josef Melcr <[email protected]>
Date:   Mon Aug 17 16:26:13 2026 +0200

    ipa: Remove check for internal calls
    
    Internal functions and their calls are not represented in the call
    graph, so the if statement removed by this patch will never go through.
    While I am making an effort to introduce some internal calls into the call
    graph, it is for optimization purposes, so the check would be in the way
    even in that case.
    
    gcc/ChangeLog:
    
            * ipa-prop.cc (ipa_compute_jump_functions_for_edge): Remove
            dead if statement checking for internal calls.
    
    Signed-off-by: Josef Melcr <[email protected]>

Diff:
---
 gcc/ipa-prop.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc
index 668932ec3291..3f9f45b02c89 100644
--- a/gcc/ipa-prop.cc
+++ b/gcc/ipa-prop.cc
@@ -2501,8 +2501,6 @@ ipa_compute_jump_functions_for_edge (struct ipa_func_body_info *fbi,
   if (flag_devirtualize)
     vec_safe_grow_cleared (args->polymorphic_call_contexts, arg_num, true);
 
-  if (gimple_call_internal_p (call))
-    return;
   if (ipa_func_spec_opts_forbid_analysis_p (cs->caller))
     return;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.