public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27896] New: inefficient lowering for return
@ 2006-06-05 7:10 dann at godzilla dot ics dot uci dot edu
2006-06-09 7:32 ` [Bug middle-end/27896] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2006-06-05 7:10 UTC (permalink / raw)
To: gcc-bugs
The .lower dump for this code: int foo (void) { return 1;} looks like:
foo ()
{
goto <D1524>;
<D1524>:;
return 1;
"goto" to the next line is useless, this just increases the memory usage and it
needs extra work to be eliminated in a subsequent pass...
--
Summary: inefficient lowering for return
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27896] inefficient lowering for return
2006-06-05 7:10 [Bug tree-optimization/27896] New: inefficient lowering for return dann at godzilla dot ics dot uci dot edu
@ 2006-06-09 7:32 ` pinskia at gcc dot gnu dot org
2006-06-13 14:22 ` dann at godzilla dot ics dot uci dot edu
2010-02-24 16:34 ` [Bug middle-end/27896] lower-gimple produces extra goto for once return functions steven at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-09 7:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-09 07:25 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-06-09 07:25:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27896] inefficient lowering for return
2006-06-05 7:10 [Bug tree-optimization/27896] New: inefficient lowering for return dann at godzilla dot ics dot uci dot edu
2006-06-09 7:32 ` [Bug middle-end/27896] " pinskia at gcc dot gnu dot org
@ 2006-06-13 14:22 ` dann at godzilla dot ics dot uci dot edu
2010-02-24 16:34 ` [Bug middle-end/27896] lower-gimple produces extra goto for once return functions steven at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2006-06-13 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dann at godzilla dot ics dot uci dot edu 2006-06-13 14:18 -------
Add Diego to the CC list as per his request.
--
dann at godzilla dot ics dot uci dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27896] lower-gimple produces extra goto for once return functions
2006-06-05 7:10 [Bug tree-optimization/27896] New: inefficient lowering for return dann at godzilla dot ics dot uci dot edu
2006-06-09 7:32 ` [Bug middle-end/27896] " pinskia at gcc dot gnu dot org
2006-06-13 14:22 ` dann at godzilla dot ics dot uci dot edu
@ 2010-02-24 16:34 ` steven at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-02-24 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from steven at gcc dot gnu dot org 2010-02-24 16:34 -------
Still a problem, actually worse now than before (.009t.lower dump at r156926):
;; Function foo (foo)
foo ()
{
int D.1974;
D.1974 = 1;
goto <D.1975>;
<D.1975>:
return D.1974;
}
The decomposition of "return 1" shows up already in the "004t.gimple" dump.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27896] lower-gimple produces extra goto for once return functions
[not found] <bug-27896-4@http.gcc.gnu.org/bugzilla/>
2021-12-23 5:28 ` pinskia at gcc dot gnu.org
@ 2024-02-20 11:59 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-02-20 11:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
This is now producing
int foo ()
{
int D.2772;
D.2772 = 1;
return D.2772;
}
the temporary is produced by return gimplification (RETURN_EXPR have an
embedded MODIFY_EXPR).
I'll call the original issue fixed, the temporary is a design decision.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27896] lower-gimple produces extra goto for once return functions
[not found] <bug-27896-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-23 5:28 ` pinskia at gcc dot gnu.org
2024-02-20 11:59 ` rguenth at gcc dot gnu.org
1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-23 5:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2008-12-07 00:46:46 |2021-12-22
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-02-20 11:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-05 7:10 [Bug tree-optimization/27896] New: inefficient lowering for return dann at godzilla dot ics dot uci dot edu
2006-06-09 7:32 ` [Bug middle-end/27896] " pinskia at gcc dot gnu dot org
2006-06-13 14:22 ` dann at godzilla dot ics dot uci dot edu
2010-02-24 16:34 ` [Bug middle-end/27896] lower-gimple produces extra goto for once return functions steven at gcc dot gnu dot org
[not found] <bug-27896-4@http.gcc.gnu.org/bugzilla/>
2021-12-23 5:28 ` pinskia at gcc dot gnu.org
2024-02-20 11:59 ` rguenth 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).