public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/51275] New: CLOBBERS can be optimized if they are right before the return (or RESX)
@ 2011-11-23  0:27 pinskia at gcc dot gnu.org
  2011-11-23  1:18 ` [Bug tree-optimization/51275] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-23  0:27 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51275
           Summary: CLOBBERS can be optimized if they are right before the
                    return (or RESX)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org


Created attachment 25890
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25890
Patch which optimizes the clobbers

As mentioned in Bug #51264 comment #10, clobbers can be optimized but only
after inlining.  I attached a patch which does the optimization in
fold_all_builtins.  With this patch, most of the reason for adding
-fno-exceptions to compiling GCC is gone (though inlining is still different).


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

end of thread, other threads:[~2011-12-05 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23  0:27 [Bug tree-optimization/51275] New: CLOBBERS can be optimized if they are right before the return (or RESX) pinskia at gcc dot gnu.org
2011-11-23  1:18 ` [Bug tree-optimization/51275] " pinskia at gcc dot gnu.org
2011-11-23  2:25 ` pinskia at gcc dot gnu.org
2011-11-23 11:40 ` jakub at gcc dot gnu.org
2011-11-23 14:36 ` matz at gcc dot gnu.org
2011-11-29 23:05 ` pinskia at gcc dot gnu.org
2011-12-05 15:50 ` rguenth at gcc dot gnu.org
2011-12-05 16:03 ` matz 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).