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]
Other format: [Raw text]

Re: gcc loop unrolling problem ??


The number of unrollings depends on size of the loop and is bound to 8
maximally.  Your loop has only single instruction so you get maximal
unrolling.  See documentation of --param max-unrolled-insns,
max-unroll-times and friends.

Is this also the case for loops with a constant number of iterations (my loops tend to be in powers of 3)? Should the documentation mention that the default value for max-unroll-times=8?



Thanks, Matt


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