Re: Unrolling loops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Lance Taylor wrote:
> Joseph Jezak <josejx@xxxxxxxxxx> writes:
> 
>> I was looking at the binary output from a simple loop that's been
>> compiled with -funroll-all-loops and I noticed that gcc will only
>> unroll a loop if the loop repeats less than 16 times.  Is there a
>> way to turn this off?  Is there a reason for it?
> 
> I don't think that is always true, though it may well be true for your
> test case.
> 
> You can control this behaviour in various ways.  Look at the
> documentation for the --param option, and the parameters like
> max-unrolled-insns.
> 
> Ian
> 

Thank you very much!  A combination of the max-unrolled-insns and
max-unroll-times parameters made gcc behave like I needed it to.

Thanks again!
-Joe

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux