aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorMartin Liska <marxin@gcc.gnu.org>2018-08-03 07:23:47 +0000
committerMartin Liska <marxin@gcc.gnu.org>2018-08-03 07:23:47 +0000
commita77e3a39de3843a8c0a0d59635b2bdd07ee67812 (patch)
treea9ad611b62229b0e6906e5d62d429c1dddf020b3 /gcc/predict.c
parent561d011953965a425463900548c29187c2898179 (diff)
downloadgcc-a77e3a39de3843a8c0a0d59635b2bdd07ee67812.zip
gcc-a77e3a39de3843a8c0a0d59635b2bdd07ee67812.tar.gz
gcc-a77e3a39de3843a8c0a0d59635b2bdd07ee67812.tar.bz2
Print heuristics probability fraction part with 2 digits.
2018-08-03 Martin Liska <mliska@suse.cz> * predict.c (dump_prediction): Change to 2 digits in fraction part. 2018-08-03 Martin Liska <mliska@suse.cz> * gcc.dg/predict-1.c: Adjust scanned pattern to cover 2 digits. * gcc.dg/predict-13.c:Likewise. * gcc.dg/predict-3.c:Likewise. * gcc.dg/predict-4.c:Likewise. * gcc.dg/predict-5.c:Likewise. * gcc.dg/predict-6.c:Likewise. * gcc.dg/predict-9.c:Likewise. * gfortran.dg/predict-1.f90:Likewise. From-SVN: r263286
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 65e088f..a6769ed 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -734,7 +734,7 @@ dump_prediction (FILE *file, enum br_predictor predictor, int probability,
else
edge_info_str[0] = '\0';
- fprintf (file, " %s heuristics%s%s: %.1f%%",
+ fprintf (file, " %s heuristics%s%s: %.2f%%",
predictor_info[predictor].name,
edge_info_str, reason_messages[reason],
probability * 100.0 / REG_BR_PROB_BASE);