public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-16157-7958@http.gcc.gnu.org/bugzilla/>]
[parent not found: <20040623133609.16157.belyshev@depni.sinp.msu.ru>]
* [Bug tree-optimization/16157] New: gcc fails to optimize redundant expression
@ 2004-06-23 13:56 belyshev at lubercy dot com
  2004-12-22  4:15 ` [Bug tree-optimization/16157] gcc fails to optimize redundant expression (reassocation) pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 6+ messages in thread
From: belyshev at lubercy dot com @ 2004-06-23 13:56 UTC (permalink / raw)
  To: gcc-bugs

extern int a0, a1, a2, a3, a4;
void f ()
{
	/* this can be optimized to four additions... */
	a4 = a4 + a3 + a2 + a1 + a0;
	a3 = a3 + a2 + a1 + a0;
	a2 = a2 + a1 + a0;
	a1 = a1 + a0;
}

...but gcc does nothing with this function.

-- 
           Summary: gcc fails to optimize redundant expression
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at lubercy dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2012-03-04  0:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16157-4@http.gcc.gnu.org/bugzilla/>
2012-03-04  0:06 ` [Bug tree-optimization/16157] gcc fails to optimize redundant expression (reassocation) pinskia at gcc dot gnu.org
     [not found] <bug-16157-7958@http.gcc.gnu.org/bugzilla/>
2007-04-16  1:55 ` dberlin at gcc dot gnu dot org
2007-04-16 18:40 ` steven at gcc dot gnu dot org
     [not found] <20040623133609.16157.belyshev@depni.sinp.msu.ru>
2005-07-26 13:14 ` dberlin at gcc dot gnu dot org
2005-08-28 20:00 ` dberlin at gcc dot gnu dot org
2004-06-23 13:56 [Bug tree-optimization/16157] New: gcc fails to optimize redundant expression belyshev at lubercy dot com
2004-12-22  4:15 ` [Bug tree-optimization/16157] gcc fails to optimize redundant expression (reassocation) pinskia 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).