]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove a redundant assignment "*predictor = PRED_BUILTIN_EXPECT;", since six
authorYi Yang <ahyangyi@google.com>
Fri, 8 Aug 2014 17:06:51 +0000 (12:06 -0500)
committerYi Yang <ahyangyi2@gcc.gnu.org>
Fri, 8 Aug 2014 17:06:51 +0000 (12:06 -0500)
lines later *predictor is assigned again.

--

2014-08-08  Yi Yang  <ahyangyi@google.com>

gcc:
    * predict.c (expr_expected_value_1): Remove the redundant assignment.

From-SVN: r213760

gcc/ChangeLog
gcc/predict.c

index 1c0404a775e6648837ecf5942abd8148ff6a2e41..7519b766ad1386bee0799d0c0e45b71df7a6d569 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-07  Yi Yang  <ahyangyi@google.com>
+
+       * predict.c (expr_expected_value_1): Remove the redundant assignment.
+
+
 2014-08-08  Richard Biener  <rguenther@suse.de>
 
        * lto-streamer.h (struct lto_input_block): Make it a class
index 03657c9a829363433b19508d6c57de4a2084da27..f7b86f1bf9fa754b93c23a9d383ef165cda59e61 100644 (file)
@@ -1859,7 +1859,6 @@ expr_expected_value_1 (tree type, tree op0, enum tree_code code,
                    return val;
                  if (predictor)
                    {
-                     *predictor = PRED_BUILTIN_EXPECT;
                      tree val2 = gimple_call_arg (def, 2);
                      gcc_assert (TREE_CODE (val2) == INTEGER_CST
                                  && tree_fits_uhwi_p (val2)