This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/28970] [4.1 regression] wrong code for simple loop test case
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2006 12:11:36 -0000
- Subject: [Bug rtl-optimization/28970] [4.1 regression] wrong code for simple loop test case
- References: <bug-28970-5233@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2006-11-01 12:11 -------
Subject: Bug 28970
Author: ebotcazou
Date: Wed Nov 1 12:11:18 2006
New Revision: 118379
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118379
Log:
PR rtl-optimization/28970
* loop.c (loop_giv_reduce_benefit): Take the max of the addition
cost on all the increments of the BIV.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/20061101-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/loop.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28970