aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-low.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-06-21 14:51:46 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-06-21 12:51:46 +0000
commite59a1c22fb249388e82b4fd004f33615abe36d2e (patch)
tree0ba9b3f978dc6746d354dccdfb340b58bb47cbfb /gcc/gimple-low.c
parentff9baa5f1c532a43d7d14a800f5a4a5c5757dca6 (diff)
downloadgcc-e59a1c22fb249388e82b4fd004f33615abe36d2e.zip
gcc-e59a1c22fb249388e82b4fd004f33615abe36d2e.tar.gz
gcc-e59a1c22fb249388e82b4fd004f33615abe36d2e.tar.bz2
Make early return predictor more precise.
2017-06-21 Martin Liska <mliska@suse.cz> PR tree-optimization/79489 * gimplify.c (maybe_add_early_return_predict_stmt): New function. (gimplify_return_expr): Call the function. * predict.c (tree_estimate_probability_bb): Remove handling of early return. * predict.def: Update comment about early return predictor. * gimple-predict.h (is_gimple_predict): New function. * predict.def: Change default value of early return to 66. * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT statements. * passes.def: Put pass_strip_predict_hints to the beginning of IPA passes. From-SVN: r249450
Diffstat (limited to 'gcc/gimple-low.c')
-rw-r--r--gcc/gimple-low.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple-low.c b/gcc/gimple-low.c
index 619b9d7..4ea6c35 100644
--- a/gcc/gimple-low.c
+++ b/gcc/gimple-low.c
@@ -30,6 +30,8 @@ along with GCC; see the file COPYING3. If not see
#include "calls.h"
#include "gimple-iterator.h"
#include "gimple-low.h"
+#include "predict.h"
+#include "gimple-predict.h"
/* The differences between High GIMPLE and Low GIMPLE are the
following: