This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove a redundant statement in predict.c


On Fri, Aug 8, 2014 at 1:59 AM, Yi Yang <ahyangyi@google.com> wrote:
> Remove a redundant assignment "*predictor = PRED_BUILTIN_EXPECT;",
> since six lines later *predictor is assigned again.

Ok.

Thanks,
Richard.

> --
>
> 2014-08-07  Yi Yang  <ahyangyi@google.com>
>
> gcc:
>     * predict.c (expr_expected_value_1): Remove the redundant assignment.
>
> diff --git gcc/predict.c gcc/predict.c
> index 835c618..869fc5d 100644
> --- gcc/predict.c
> +++ gcc/predict.c
> @@ -1858,7 +1858,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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]