This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14466] New: missed PHI optimization (different types)
- 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: 7 Mar 2004 04:02:57 -0000
- Subject: [Bug optimization/14466] New: missed PHI optimization (different types)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following two functions should produce the same *.optimized file:
int t( int i)
{
int j;
if(i ==0)
{
j = 1;
goto end;
}
j = 0;
end:
return j;
}
int t1(int i)
{
_Bool j1 = i == 0;
return j1;
}
Other optimizations might be missed out by not doing this, I do not know. Most likely
what needs to happen is another temp then add the conversion.
--
Summary: missed PHI optimization (different types)
Product: gcc
Version: tree-ssa
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=14466