public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48592] alloca () calls are not DCEd
  2011-04-13 13:25 [Bug middle-end/48592] New: alloca () calls are not DCEd rguenth at gcc dot gnu.org
@ 2011-04-13 13:25 ` rguenth at gcc dot gnu.org
  2013-10-21  3:26 ` glisse at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-13 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Keywords|                            |missed-optimization
   Last reconfirmed|                            |2011.04.13 13:25:42
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-13 13:25:42 UTC ---
Very simple, mine.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/48592] New: alloca () calls are not DCEd
@ 2011-04-13 13:25 rguenth at gcc dot gnu.org
  2011-04-13 13:25 ` [Bug middle-end/48592] " rguenth at gcc dot gnu.org
  2013-10-21  3:26 ` glisse at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-13 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: alloca () calls are not DCEd
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


We should DCE alloca () calls.  Testcase:

void foo (int i)
{
  int a[i];
}


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/48592] alloca () calls are not DCEd
  2011-04-13 13:25 [Bug middle-end/48592] New: alloca () calls are not DCEd rguenth at gcc dot gnu.org
  2011-04-13 13:25 ` [Bug middle-end/48592] " rguenth at gcc dot gnu.org
@ 2013-10-21  3:26 ` glisse at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-10-21  3:26 UTC (permalink / raw)
  To: gcc-bugs

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |glisse at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
We currently produce this .optimized:

foo (int i)
{
  void * saved_stack.2;

  <bb 2>:
  saved_stack.2_3 = 0B;
  GIMPLE_NOP
  return;

}

(and RTL finishes the cleanup)

cddce1 removes alloca
fab1 removes the stack save/restore

So I'm going to mark this as fixed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-21  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-13 13:25 [Bug middle-end/48592] New: alloca () calls are not DCEd rguenth at gcc dot gnu.org
2011-04-13 13:25 ` [Bug middle-end/48592] " rguenth at gcc dot gnu.org
2013-10-21  3:26 ` glisse 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).