public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14466] New: missed PHI optimization (different types)
@ 2004-03-07  4:02 pinskia at gcc dot gnu dot org
  2004-03-07  4:03 ` [Bug optimization/14466] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-07  4:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-14 15:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-07  4:02 [Bug optimization/14466] New: missed PHI optimization (different types) pinskia at gcc dot gnu dot org
2004-03-07  4:03 ` [Bug optimization/14466] " pinskia at gcc dot gnu dot org
2004-03-07  4:50 ` pinskia at gcc dot gnu dot org
2004-03-31 13:31 ` pinskia at gcc dot gnu dot org
2004-04-05  0:23 ` pinskia at gcc dot gnu dot org
2004-05-14  8:11 ` [Bug tree-optimization/14466] " pinskia at gcc dot gnu dot org
2004-05-14 20:05 ` cvs-commit at gcc dot gnu dot org
2004-05-14 20:13 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).