------- Comment #9 from jakub at gcc dot gnu dot org 2006-05-17 08:24 ------- Subject: Bug 27549
Author: jakub Date: Wed May 17 08:23:55 2006 New Revision: 113843 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113843 Log: PR tree-optimization/27549 Backported from mainline 2006-05-01 Zdenek Dvorak <[EMAIL PROTECTED]> PR tree-optimization/27283 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees, not whole # of iteration descriptions. (niter_for_exit): Return just # of iterations. Fail if # of iterations uses abnormal ssa name. (niter_for_single_dom_exit): Ditto. (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to return just the number of iterations. (add_iv_outer_candidates, may_replace_final_value): Likewise. * g++.dg/tree-ssa/pr27283.C: New test. * g++.dg/tree-ssa/pr27549.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/tree-ssa/pr27283.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/tree-ssa/pr27549.C Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/tree-ssa-loop-ivopts.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27549