public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/19431] New: missed optimization with ifs and deferencing
@ 2005-01-13 21:38 pinskia at gcc dot gnu dot org
  2005-01-13 21:42 ` [Bug tree-optimization/19431] " steven at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 25+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-13 21:38 UTC (permalink / raw)
  To: gcc-bugs

I found this while looking into PR 8361 for missed optimization.
The following two programs should produce the same asm:
int f(int k, int i1, int j1)
{
  int *f1;
  if(k)
   f1 = &i1;
  else
   f1 = &j1;
  return *f1;
}
int g(int k, int i1, int j1)
{
  int *f1;
  if(k)
   return i1;
  else
   return j1;
}

-- 
           Summary: missed optimization with ifs and deferencing
           Product: gcc
           Version: 4.0.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=19431


^ permalink raw reply	[flat|nested] 25+ messages in thread
[parent not found: <bug-19431-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-04-18 18:21 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 21:38 [Bug tree-optimization/19431] New: missed optimization with ifs and deferencing pinskia at gcc dot gnu dot org
2005-01-13 21:42 ` [Bug tree-optimization/19431] " steven at gcc dot gnu dot org
2005-01-13 21:43 ` pinskia at gcc dot gnu dot org
2005-01-13 21:54 ` pinskia at gcc dot gnu dot org
2005-01-14 13:32 ` pinskia at gcc dot gnu dot org
2005-01-15  0:22 ` dberlin at dberlin dot org
     [not found] <bug-19431-6528@http.gcc.gnu.org/bugzilla/>
2006-02-05 15:37 ` pinskia at gcc dot gnu dot org
2006-12-19 21:16 ` pinskia at gcc dot gnu dot org
2006-12-20  9:58 ` steven at gcc dot gnu dot org
2007-02-09 14:46 ` pinskia at gcc dot gnu dot org
2007-02-09 14:48 ` rguenth at gcc dot gnu dot org
2007-02-25 19:00 ` pluto at agmk dot net
2007-02-25 19:52 ` rguenth at gcc dot gnu dot org
2007-02-25 20:09 ` pluto at agmk dot net
2007-02-25 22:01 ` pinskia at gcc dot gnu dot org
2007-02-25 22:23 ` rguenth at gcc dot gnu dot org
2007-02-25 22:50 ` rguenth at gcc dot gnu dot org
2007-02-25 22:51 ` rguenth at gcc dot gnu dot org
2007-02-26 10:33 ` rguenth at gcc dot gnu dot org
2007-04-18 11:45 ` rguenth at gcc dot gnu dot org
2007-04-18 11:48 ` rguenth at gcc dot gnu dot org
2007-04-18 12:02 ` pluto at agmk dot net
2007-04-18 13:45 ` rguenth at gcc dot gnu dot org
2007-04-18 18:18 ` pluto at agmk dot net
2007-04-18 18:21 ` 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).