PR tree-optimization/53090
commitd9a0cb66a7ea33ab5cec1902b62755c5c75c86dd
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2017 09:50:15 +0000 (11 09:50 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2017 09:50:15 +0000 (11 09:50 +0000)
treed4dab1683fafa66b12a8b0e092a001462109e1c4
parent7b3dc7d4443df351a46c1606ddf5a21e939e941c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247893 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c