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

Disable loop-reordering/ loop-interchange

Paul_S_
Beginner
783 Views
Hello, is it possible to disable loop-reordering/ loop-interchange while compiling with -O3? Thank you, Paul
0 Kudos
1 Reply
TimP
Honored Contributor III
783 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.

0 Kudos
Reply