Loop unrolling
Mike Stump
mrs@wrs.com
Mon Jun 1 16:32:00 GMT 1998
> Date: Mon, 1 Jun 1998 12:57:21 +0200 (MET DST)
> From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
> To: egcs-patches@cygnus.com, egcs@cygnus.com
> cc: Tim Hollebeek <tim@wagner.princeton.edu>
> As a matter of fact, is there still any strong reason not to delete
> empty loops in general?
I don't think we should.
> > Morover, with @samp{-funroll-loops} small ``empty'' loops indeed are
> > removed, so the current behavior is both sub-optimal and inconsistent
> > and may well change in the future.
I don't think this should go in the docs. I think it is a bug in the
unroller that gcc optimizes away an empty loop. I think this should
be fixed. I think the docs can admit the current bug, but should not
call it anything but a bug.
More information about the Gcc-patches
mailing list