Hello.

This corrects a typo in predict.c, which is pre-approved by Honza.
Survives regression tests & bootstraps on x86_64-linux-gnu.

Installed as r237481.

Martin
>From 5d755d1a83094b24319d4a31d1c951c8aa622a87 Mon Sep 17 00:00:00 2001
From: marxin <mli...@suse.cz>
Date: Wed, 15 Jun 2016 14:37:29 +0200
Subject: [PATCH 1/2] Fix obvious typo in predict.c

gcc/ChangeLog:

2016-06-15  Martin Liska  <mli...@suse.cz>

	* predict.c (tree_predict_by_opcode): Call predict_edge_def
	instead of predict_edge w/o a probability.
---
 gcc/predict.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/predict.c b/gcc/predict.c
index 7d55ff7..bafcc96 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -2192,8 +2192,8 @@ tree_predict_by_opcode (basic_block bb)
 	  predict_edge (then_edge, PRED_BUILTIN_EXPECT, HITRATE (percent));
 	}
       else
-	predict_edge (then_edge, predictor,
-		      integer_zerop (val) ? NOT_TAKEN : TAKEN);
+	predict_edge_def (then_edge, predictor,
+			  integer_zerop (val) ? NOT_TAKEN : TAKEN);
     }
   /* Try "pointer heuristic."
      A comparison ptr == 0 is predicted as false.
-- 
2.8.3

Reply via email to