From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42003 invoked by alias); 3 Apr 2015 11:16:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 41977 invoked by uid 48); 3 Apr 2015 11:16:53 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65637] expand_omp_for_static_chunk ssa-handling code is untested Date: Fri, 03 Apr 2015 11:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: minor X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: vries at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00197.txt.bz2 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 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 The inner loop phi should not have 0.0 as argument, but the result of the outer loop phi: # s.5_20 = PHI This patch fixes the inner loop phi, and autopar-1.exe passes.