This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65637] expand_omp_for_static_chunk ssa-handling code is untested
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Apr 2015 11:16:52 +0000
- Subject: [Bug tree-optimization/65637] expand_omp_for_static_chunk ssa-handling code is untested
- Auto-submitted: auto-generated
- References: <bug-65637-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65637
--- Comment #3 from vries at gcc dot gnu.org ---
Created attachment 35221
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35221&action=edit
patch for autopar-1.exe
For autopar-1.c, the original loop has a loop phi:
# s.5_20 = PHI <s.5_12(4), 0.0(20)>
After expand_omp_for_static_chunk, there's an inner and an outer loop. The
outer loop phi is:
# s.5_11 = PHI <0.0(15), s.5_12(21)>
and the inner loop phi is:
# s.5_20 = PHI <s.5_12(4), 0.0(20)>
The inner loop phi should not have 0.0 as argument, but the result of the outer
loop phi:
# s.5_20 = PHI <s.5_12(4), s.5_11(20)>
This patch fixes the inner loop phi, and autopar-1.exe passes.