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
* [Bug tree-optimization/37537] mfcr is produced when a branch should be done
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 ` rguenth at gcc dot gnu dot org
2008-09-22 19:28 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-16 13:11 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-16 13:10:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37537
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/37537] mfcr is produced when a branch should be done
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
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-22 19:28 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37537
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/37537] mfcr is produced when a branch should be done
[not found] <bug-37537-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-22 1:30 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-22 1:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37537
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |8.2.0, 9.3.0
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 77820 which is fixed for GCC 10+.
*** This bug has been marked as a duplicate of bug 77820 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
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).