On Tue, Apr 18, 2017 at 12:49 PM, Bin Cheng <bin.ch...@arm.com> wrote:
> Hi,
> This patch supports compare iv_use for comparison whose both sides are IVs.
> With this patch, optimal code is generated for PR53090.
> Is it OK?

Ok.

Richard.

> Thanks,
> bin
> 2017-04-11  Bin Cheng  <bin.ch...@arm.com>
>
>         PR tree-optimization/53090
>         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
>         COMP_IV_EXPR_2.
>         (extract_cond_operands): Detect condition with IV on both sides
>         and return COMP_IV_EXPR_2.
>         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
>         (rewrite_use_compare): Simplify by removing call to function
>         extract_cond_operands.

Reply via email to