diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index b2a082d..056bcbe 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1258,6 +1258,9 @@ gimple_ic_transform (gimple stmt) if (gimple_call_fndecl (stmt) != NULL_TREE) return false; + if (gimple_call_internal_p (stmt)) + return false; + histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INDIR_CALL); if (!histogram) return false; @@ -1649,6 +1652,7 @@ gimple_indirect_call_to_profile (gimple stmt, histogram_values *values) tree callee; if (gimple_code (stmt) != GIMPLE_CALL + || gimple_call_internal_p (stmt) || gimple_call_fndecl (stmt) != NULL_TREE) return; |