[Bug tree-optimization/41488] IVOpts cannot coalesce multiple induction variables
amker at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 06:31:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41488
--- Comment #6 from amker at gcc dot gnu.org ---
Author: amker
Date: Tue Dec 10 06:31:41 2013
New Revision: 205848
URL: http://gcc.gnu.org/viewcvs?rev=205848&root=gcc&view=rev
Log:
PR tree-optimization/41488
* tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
for PEELED_CHREC kind IV.
* tree-scalar-evolution.c: Include necessary header files.
(peeled_chrec_map, simplify_peeled_chrec): New.
(analyze_evolution_in_loop): New static variable.
Call simplify_peeled_chrec.
(scev_initialize): Initialize peeled_chrec_map.
(scev_reset, scev_finalize): Reset and release peeled_chrec_map.
PR tree-optimization/41488
* gcc.dg/tree-ssa/scev-7.c: New test.
* gcc.dg/pr41488.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr41488.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/scev-7.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-scalar-evolution.c
trunk/gcc/tree-ssa-loop-ivopts.c
More information about the Gcc-bugs
mailing list