This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53090] suboptimal ivopt
- From: "amker at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 May 2017 09:50:48 +0000
- Subject: [Bug tree-optimization/53090] suboptimal ivopt
- Auto-submitted: auto-generated
- References: <bug-53090-4@http.gcc.gnu.org/bugzilla/>
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