This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/60997] -fopenmp conflicts with -floop-interchange
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jun 2014 19:54:58 +0000
- Subject: [Bug tree-optimization/60997] -fopenmp conflicts with -floop-interchange
- Auto-submitted: auto-generated
- References: <bug-60997-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60997
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also, the compiler really isn't allowed to interchange the !$OMP DO loop
(outermost) with the inner ones, it has different semantics because of the
markup. The compiler could still interchange the inner two loops if it is
beneficial. You can also try to use collapse(2) or collapse(3) clause on the
!$OMP DO, then the outermost two or all 3 loops are workshared together.