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]

[PATCH GCC8][21/33]Support compare iv_use which both sides of comparison are IVs


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?

Thanks,
bin
2017-04-11  Bin Cheng  <bin.cheng@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.

Attachment: 0021-iv-comparing-against-another-iv-20170313.txt
Description: 0021-iv-comparing-against-another-iv-20170313.txt


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