public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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; 3+ 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] 3+ 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 ` [Bug middle-end/27896] lower-gimple produces extra goto for once return functions pinskia at gcc dot gnu.org
@ 2024-02-20 11:59 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ 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] 3+ 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
@ 2010-02-24 16:34 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2024-02-20 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27896-4@http.gcc.gnu.org/bugzilla/>
2021-12-23  5:28 ` [Bug middle-end/27896] lower-gimple produces extra goto for once return functions pinskia at gcc dot gnu.org
2024-02-20 11:59 ` rguenth at gcc dot gnu.org
2006-06-05  7:10 [Bug tree-optimization/27896] New: inefficient lowering for return 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

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).