Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7724 Discussions

Disable loop-reordering/ loop-interchange

Paul_S_
Beginner
214 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
214 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