public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/30102]  New: missed strength reduction optimization (irreducible loops)
@ 2006-12-07  6:00 dann at godzilla dot ics dot uci dot edu
  2006-12-07 14:16 ` [Bug tree-optimization/30102] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2006-12-07  6:00 UTC (permalink / raw)
  To: gcc-bugs

The following 2 functions should be compiled to the same assembly. 
This is one of Briggs' compiler benchmarks.


void strength_test4(int *data)
{
  int i;
  if (data[1]) {
    i = 2;
    goto here;
  }
  i = 0;
  do {
    i = i + 1;
here:
    data[data[2]] = 2;
  } while (i * 21 < data[3]);
}
void strength_result4(int *data)
{
  int i;
  if (data[1]) {
    i = 42;
    goto here;
  }
  i = 0;
  do {
    i = i + 21;
here:
    data[data[2]] = 2;
  } while (i < data[3]);
}


-- 
           Summary: missed strength reduction optimization (irreducible
                    loops)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu


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


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

* [Bug tree-optimization/30102] missed strength reduction optimization (irreducible loops)
  2006-12-07  6:00 [Bug tree-optimization/30102] New: missed strength reduction optimization (irreducible loops) dann at godzilla dot ics dot uci dot edu
@ 2006-12-07 14:16 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-12-07 14:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-12-07 14:16 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-07 14:16:12
               date|                            |


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


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

end of thread, other threads:[~2006-12-07 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07  6:00 [Bug tree-optimization/30102] New: missed strength reduction optimization (irreducible loops) dann at godzilla dot ics dot uci dot edu
2006-12-07 14:16 ` [Bug tree-optimization/30102] " rguenth 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).