From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15291 invoked by alias); 13 Nov 2014 23:51:34 -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 15239 invoked by uid 48); 13 Nov 2014 23:51:30 -0000 From: "evstupac at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/59984] OpenMP and Cilk Plus SIMD pragma makes loop incorrect Date: Thu, 13 Nov 2014 23:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: evstupac at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 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: 2014-11/txt/msg01166.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59984 --- Comment #12 from Stupachenko Evgeny --- Created attachment 33963 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33963&action=edit test case where pragma simd disable vectorization The following test case compiled with "-Ofast" vectorize the loop in the GetXsum function. Adding "-fopenmp" leads to failed vectorization due to: simd_issue.cpp:26:18: note: not vectorized: data ref analysis failed D.2329[_7].x = _12; It looks like before the patch in this Bug loop was vectorized with -fopenmp.