------- Comment #10 from jakub at gcc dot gnu dot org 2006-05-04 06:40 ------- Subject: Bug 25985
Author: jakub Date: Thu May 4 06:40:15 2006 New Revision: 113515 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113515 Log: PR tree-optimization/27285 Backport from mainline: 2006-03-28 Zdenek Dvorak <[EMAIL PROTECTED]> PR tree-optimization/25985 * tree-ssa-loop-niter.c (number_of_iterations_le, number_of_iterations_ne): Make comments more precise. (number_of_iterations_cond): Add only_exit argument. Use the fact that signed variables do not overflow only when only_exit is true. (loop_only_exit_p): New. (number_of_iterations_exit): Pass result of loop_only_exit_p to number_of_iterations_cond. * gcc.c-torture/execute/pr27285.c: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/pr27285.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-niter.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25985