This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Loop unrolling


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]