summaryrefslogtreecommitdiff
path: root/gcc/predict.def
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-30 15:54:12 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-30 15:54:12 +0000
commit49493a4eee2b575cb7b5aac3a3ef8848d77e2bea (patch)
treec2af7e070b078fe76de14f6f69265751d4ccb7b0 /gcc/predict.def
parentd5d994d40863d8333219102e5b2687485a5f12d7 (diff)
downloadgcc-49493a4eee2b575cb7b5aac3a3ef8848d77e2bea.tar.gz
* predict.def (noreturn, loop branch, loop exit): Mark as first
match heuristics. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44473 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.def')
-rw-r--r--gcc/predict.def9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/predict.def b/gcc/predict.def
index 577f035e97e..28b0bbfa5af 100644
--- a/gcc/predict.def
+++ b/gcc/predict.def
@@ -58,13 +58,16 @@ DEF_PREDICTOR (PRED_BUILTIN_EXPECT, "__builtin_expect", PROB_VERY_LIKELY,
PRED_FLAG_FIRST_MATCH)
/* Branch to basic block containing call marked by noreturn attribute. */
-DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_ALWAYS, 0)
+DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_ALWAYS,
+ PRED_FLAG_FIRST_MATCH)
/* Loopback edge is taken. */
-DEF_PREDICTOR (PRED_LOOP_BRANCH, "loop branch", HITRATE (88), 0)
+DEF_PREDICTOR (PRED_LOOP_BRANCH, "loop branch", HITRATE (88),
+ PRED_FLAG_FIRST_MATCH)
/* Edge causing loop to terminate is probably not taken. */
-DEF_PREDICTOR (PRED_LOOP_EXIT, "loop exit", HITRATE (80), 0)
+DEF_PREDICTOR (PRED_LOOP_EXIT, "loop exit", HITRATE (80),
+ PRED_FLAG_FIRST_MATCH)
/* Condition emitted by preconditiong code to ensure that variable
setting number of iterations is greater than initial value of iterator. */