Loop unrolling

Joern Rennecke amylaar@cygnus.co.uk
Wed Sep 16 09:44:00 GMT 1998

> I hate to bring up a 3 month-old horse, but has anyone added in such
> functionality to remove empty loops, unconditionally? (Or, could a
> complete newbie GCC/EGCS hacker add it in himself and submit a patch?)

It is a special case of loop unrolling.  It is fairly easy to modify
unroll.c to completely unroll all empty loops.  The tricky part is that
some loops might not terminate before unrolling, yet unrolling them
completely removes them.

More information about the Gcc mailing list