Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Automatic loop unrolling?

lionelk
Beginner
836 Views
Hello.

I'm compiling SSE code using the "QxW" and "O3" switches (I'm only interested in P4 code). Does the Intel compiler (v7) automatically unroll loops, or should I do this manually?
0 Kudos
1 Reply
TimP
Honored Contributor III
836 Views
Yes, the compiler unrolls automatically, with default optimization levels. More extensive unrolling is performed when appropriate for vectorization.
0 Kudos
Reply