public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/19001] New: Loops with power of two step and variable bounds not unrolled
@ 2004-12-15  0:25 rakdver at gcc dot gnu dot org
  2004-12-15  4:55 ` [Bug rtl-optimization/19001] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2004-12-15  0:25 UTC (permalink / raw)
  To: gcc-bugs

Loop of the following form

int check(int a,int b, char *c)
{
for(;a<b;a+=4)
  if(c[a]==1) return a;
return a;
}

(with step being power of two and > 1, and bounds variable) does not get unrolled.
It may happen that this loop is infinite, but this should not prevent unrolling.

-- 
           Summary: Loops with power of two step and variable bounds not
                    unrolled
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: rakdver at gcc dot gnu dot org
        ReportedBy: rakdver at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-05-19 17:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-15  0:25 [Bug rtl-optimization/19001] New: Loops with power of two step and variable bounds not unrolled rakdver at gcc dot gnu dot org
2004-12-15  4:55 ` [Bug rtl-optimization/19001] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-12-15 10:20 ` pcarlini at suse dot de
2004-12-15 12:28 ` chris at bubblescope dot net
2004-12-15 12:52 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2004-12-16  9:18 ` rakdver at gcc dot gnu dot org
2004-12-18 19:20 ` chris at bubblescope dot net
2004-12-18 20:14 ` cvs-commit at gcc dot gnu dot org
2004-12-18 20:28 ` rakdver at gcc dot gnu dot org
2004-12-18 20:42 ` [Bug rtl-optimization/19001] [3.4 " pinskia at gcc dot gnu dot org
2004-12-19 10:59 ` chris at bubblescope dot net
2004-12-20 11:46 ` giovannibajo at libero dot it
2005-02-12 22:35 ` pinskia at gcc dot gnu dot org
2005-05-19 17:46 ` mmitchel 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).