public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/37537]  New: mfcr is produced when a branch should be done
@ 2008-09-16  1:45 pinskia at gcc dot gnu dot org
  2008-09-16 13:11 ` [Bug tree-optimization/37537] " rguenth at gcc dot gnu dot org
  2008-09-22 19:28 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-16  1:45 UTC (permalink / raw)
  To: gcc-bugs

Reduced from PR 37536, but this is actually what the user did:

int f(int a, int b, int c)
{
if (a > 0 ? b < c: b > c)
  return a;
else
  return b;
}

This should be able to rewritten as:
int f(int a, int b, int c)
{
  if (a > 0)
  {
    if (b < c)
      return a;
  } else if (b > c)
      return a;

  return b;
}


-- 
           Summary: mfcr is produced when a branch should be done
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37537


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

end of thread, other threads:[~2021-08-22  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-16  1:45 [Bug tree-optimization/37537] New: mfcr is produced when a branch should be done pinskia at gcc dot gnu dot org
2008-09-16 13:11 ` [Bug tree-optimization/37537] " rguenth at gcc dot gnu dot org
2008-09-22 19:28 ` pinskia at gcc dot gnu dot org
     [not found] <bug-37537-4@http.gcc.gnu.org/bugzilla/>
2021-08-22  1:30 ` pinskia at gcc dot gnu.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).