This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14341] New: Missed optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Feb 2004 06:29:44 -0000
- Subject: [Bug optimization/14341] New: Missed optimization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The call to f below should just be called with just 1 instead of the extra compares.
void f(int);
int h(int, int);
void t()
{
int i;
int x;
for( i = 0; i < 100000000; i++ ){
f(i < 100000000);
}
}
--
Summary: Missed optimization
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14341