https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53090
--- Comment #9 from amker at gcc dot gnu.org --- Author: amker Date: Thu May 11 09:50:15 2017 New Revision: 247893 URL: https://gcc.gnu.org/viewcvs?rev=247893&root=gcc&view=rev Log: 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. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-loop-ivopts.c