This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15618] New: Missed bool 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: 23 May 2004 17:20:59 -0000
- Subject: [Bug tree-optimization/15618] New: Missed bool optimization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following three code should be produce the excatly the same asm:
int f(_Bool f1)
{
if (f1 != 0)
return 1;
return 0;
}
int f3(_Bool f1)
{
int f4;
if (f1)
f4 = 1;
else
f4 = 0;
return f4;
}
int f5(_Bool f1)
{
return f1;
}
--
Summary: Missed bool optimization
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-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=15618