http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58296
--- Comment #1 from amker at gcc dot gnu.org --- Author: amker Date: Fri Dec 13 11:36:22 2013 New Revision: 205959 URL: http://gcc.gnu.org/viewcvs?rev=205959&root=gcc&view=rev Log: PR tree-optimization/58296 PR tree-optimization/41488 * tree-scalar-evolution.c: Include necessary header files. (simplify_peeled_chrec): New function. (analyze_evolution_in_loop): New static variable. Call simplify_peeled_chrec. * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv. (add_old_iv_candidates): Don't add candidate for peeled IV. * tree-affine.h (aff_combination_zero_p): New function. PR tree-optimization/58296 PR tree-optimization/41488 * gcc.dg/tree-ssa/scev-7.c: New test. * gcc.dg/pr41488.c: New test. * g++.dg/pr59445.C: New test. Added: trunk/gcc/testsuite/g++.dg/pr59445.C 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-affine.h trunk/gcc/tree-scalar-evolution.c trunk/gcc/tree-ssa-loop-ivopts.c