re PR tree-optimization/53090 (suboptimal ivopt)
authorBin Cheng <bin.cheng@arm.com>
Thu, 11 May 2017 09:50:15 +0000 (09:50 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 11 May 2017 09:50:15 +0000 (09:50 +0000)
commit80ca1cfad49fbdd8e446023c5ebabf03d23a83ef
treed4dab1683fafa66b12a8b0e092a001462109e1c4
parentb6a2258fda637660ece6705cf19e4f7ef6674df8
re PR tree-optimization/53090 (suboptimal ivopt)

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.

From-SVN: r247893
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c