diff options
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index c6c7a8885f5..455af4c4863 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -204,6 +204,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-flow.h" #include "tree-pass.h" #include "tree-ssa-propagate.h" +#include "value-prof.h" #include "langhooks.h" #include "target.h" #include "toplev.h" @@ -2885,6 +2886,10 @@ execute_fold_all_builtins (void) fcode = DECL_FUNCTION_CODE (callee); result = ccp_fold_builtin (*stmtp, call); + + if (result) + gimple_remove_stmt_histograms (cfun, *stmtp); + if (!result) switch (DECL_FUNCTION_CODE (callee)) { |