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 1/3][POPCOUNT] Handle COND_EXPR in expression_expensive_p


On Fri, Jul 6, 2018 at 11:45 AM Kugan Vivekanandarajah
<kugan.vivekanandarajah@linaro.org> wrote:
>
> Hi Richard,
>
> > It was rewrite_to_non_trapping_overflow available  in tree.h.  Thus
> > final value replacement
> > could use that before gimplifying instead of using rewrite_to_defined_overflow
> Thanks.
>
> Is the attached patch OK? I am testing this on x86_64-linux-gnu and if
> there is no new regressions.

Please clean up the control flow to

  if (...)
    def = rewrite_to_non_trapping_overflow (def);
  def = force_gimple_operand_gsi (&gsi, def, false, NULL_TREE,
                                        true, GSI_SAME_STMT);

OK with that change.
Richard.

> Thanks,
> Kugan
>
> gcc/ChangeLog:
>
> 2018-07-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
>
>     * tree-scalar-evolution.c (final_value_replacement_loop): Use
>     rewrite_to_non_trapping_overflow instead of rewrite_to_defined_overflow.


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