Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

Disable loop-reordering/ loop-interchange

Paul_S_
Beginner
147 Views
Hello, is it possible to disable loop-reordering/ loop-interchange while compiling with -O3? Thank you, Paul
0 Kudos
1 Reply
TimP
Black Belt
147 Views

I haven't seen a supported (publically documented) option for this specific purpose.  #pragma distribute point may have such an effect, probably between the loops you don't want swapped.  #pragma omp often suppresses loop interchanges.

Reply