Mercurial > hg > CbC > CbC_gcc
diff gcc/predict.def @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/predict.def Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/predict.def Thu Feb 13 11:34:05 2020 +0900 @@ -1,5 +1,5 @@ /* Definitions for the branch prediction routines in the GNU compiler. - Copyright (C) 2001-2018 Free Software Foundation, Inc. + Copyright (C) 2001-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -78,6 +78,14 @@ "__builtin_expect_with_probability", PROB_UNINITIALIZED, PRED_FLAG_FIRST_MATCH) +/* Branches to hot labels are likely. */ +DEF_PREDICTOR (PRED_HOT_LABEL, "hot label", HITRATE (90), + PRED_FLAG_FIRST_MATCH) + +/* Branches to cold labels are extremely unlikely. */ +DEF_PREDICTOR (PRED_COLD_LABEL, "cold label", HITRATE (90), + PRED_FLAG_FIRST_MATCH) + /* Use number of loop iterations guessed by the contents of the loop. */ DEF_PREDICTOR (PRED_LOOP_ITERATIONS_GUESSED, "guessed loop iterations", PROB_UNINITIALIZED, PRED_FLAG_FIRST_MATCH) @@ -171,13 +179,6 @@ DEF_PREDICTOR (PRED_LOOP_GUARD_WITH_RECURSION, "loop guard with recursion", HITRATE (85), 0) -/* Branches to hot labels are likely. */ -DEF_PREDICTOR (PRED_HOT_LABEL, "hot label", HITRATE (85), 0) - -/* Branches to cold labels are extremely unlikely. */ -DEF_PREDICTOR (PRED_COLD_LABEL, "cold label", PROB_VERY_LIKELY, - PRED_FLAG_FIRST_MATCH) - /* The following predictors are used in Fortran. */ /* Branch leading to an integer overflow are extremely unlikely. */ @@ -228,3 +229,10 @@ to be very likely. */ DEF_PREDICTOR (PRED_FORTRAN_LOOP_PREHEADER, "Fortran loop preheader", \ HITRATE (99), 0) + +/* Fortran assumed size arrays can be non-contiguous, so they need + to be repacked. */ + +DEF_PREDICTOR (PRED_FORTRAN_CONTIGUOUS, "Fortran contiguous", \ + HITRATE (75), 0) +