disabling loop unrolling in GCC

disabling loop unrolling in GCC

Shachar Shemesh shachar at shemesh.biz
Mon Dec 21 18:46:01 IST 2009


Dotan Shavit wrote:
> On Monday 21 December 2009 14:00:39 Shachar Shemesh wrote:
>   
>> Where it gets worrying is when I try to cancel loop unrolling. I tried
>>  "-fno-unroll-loops" and "-fno-peel-loops", to no effect. I even tried
>>  messing with the --param option (max-unrolled-insns, max-unroll-times,
>>  max-peel-times) to no noticeable effect
>>
>>     
> max-completely-peeled-insns is your friend
>
> This param's value is also the difference between -O3 and -O2 you were missing
>   
Out of curiosity, how do you know that? Did you grep the gcc sources?

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091221/44f5b092/attachment.html>


More information about the Linux-il mailing list