]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/value-prof.c
gcc/
[thirdparty/gcc.git] / gcc / value-prof.c
index b2a082de7e2e256944f6b2632db207e04e3d6586..056bcbe5693ed1605c6016eeab6046d36e3ed2b3 100644 (file)
@@ -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;