Fix obvious typo in predict.c
authorMartin Liska <mliska@suse.cz>
Wed, 15 Jun 2016 15:05:34 +0000 (17:05 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 15 Jun 2016 15:05:34 +0000 (15:05 +0000)
* predict.c (tree_predict_by_opcode): Call predict_edge_def
instead of predict_edge w/o a probability.

From-SVN: r237481

gcc/ChangeLog
gcc/predict.c

index 568d385a10f18a22d463fb28d9a1debec53acf19..01d50905dff7a223bf18aba5d7cf99b0f3de91f9 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-15  Martin Liska  <mliska@suse.cz>
+
+       * predict.c (tree_predict_by_opcode): Call predict_edge_def
+       instead of predict_edge w/o a probability.
+
 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
 
        PR tree-optimization/71439
index 7d55ff7c71c7822a0b1dab4b14d51f50fa62751e..bafcc96fbc5c0c6b255d56fd952c7abe47fa3b80 100644 (file)
@@ -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.