public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22325] New: missed optimization in loop
@ 2005-07-06 15:18 pinskia at gcc dot gnu dot org
  2005-07-06 15:23 ` [Bug tree-optimization/22325] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 15:18 UTC (permalink / raw)
  To: gcc-bugs

The following two functions should be the same:
int foo(int a) {
int i;
for (i=0; i<200; i++) {
a = a + 5;
}
return a;
}
int foo(int a) {
int i;
for (i=0; i<200; i++) ;
return a+5*200;
}

The RTL optimizers catch this on ppc but not on x86.

-- 
           Summary: missed optimization in loop
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-07-27 13:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 15:18 [Bug tree-optimization/22325] New: missed optimization in loop pinskia at gcc dot gnu dot org
2005-07-06 15:23 ` [Bug tree-optimization/22325] " pinskia at gcc dot gnu dot org
2005-07-07 19:58 ` pinskia at gcc dot gnu dot org
2005-07-07 20:03 ` pinskia at gcc dot gnu dot org
2005-07-07 20:06 ` steven at gcc dot gnu dot org
2005-07-07 20:16 ` pinskia at gcc dot gnu dot org
2005-07-12  0:02 ` pinskia at gcc dot gnu dot org
2005-07-15 17:15 ` pinskia at gcc dot gnu dot org
2005-07-27 13:46 ` cvs-commit at gcc dot gnu dot org
2005-07-27 13:56 ` 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).