From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9938 invoked by alias); 3 Feb 2011 18:11:08 -0000 Received: (qmail 9921 invoked by uid 22791); 3 Feb 2011 18:11:07 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Feb 2011 18:11:03 +0000 Received: by gyd8 with SMTP id 8so647680gyd.20 for ; Thu, 03 Feb 2011 10:11:01 -0800 (PST) Received: by 10.90.105.10 with SMTP id d10mr966336agc.99.1296756660207; Thu, 03 Feb 2011 10:11:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.90.26.5 with HTTP; Thu, 3 Feb 2011 10:10:18 -0800 (PST) In-Reply-To: References: From: Sebastian Pop Date: Thu, 03 Feb 2011 18:11:00 -0000 Message-ID: Subject: Re: [Bug tree-optimization/46194] [4.5/4.6 Regression] gcc.dg/graphite/block-0.c FAILs with -ftree-parallelize-loops To: "jakub at gcc dot gnu.org" Cc: gcc-bugs@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2011-02/txt/msg00535.txt.bz2 Here is the loop kernel from block-0.c for (i =3D 0; i < N; i++) for (j =3D 0; j < N; j++) a[j] =3D a[i] + 1; On Fri, Dec 31, 2010 at 06:01, jakub at gcc dot gnu.org wrote: > =A0access_fn_A: {0, +, 1}_1 > =A0access_fn_B: {0, +, 1}_2 > > =A0(subscript > =A0iterations_that_access_an_element_twice_in_A: [0 + 1 * x_1] > =A0last_conflict: 1000 > =A0iterations_that_access_an_element_twice_in_B: [0 + 1 * x_1] I think that this representation of affine functions is wrong: the access in B should read [0 + 0 * x_1 + 1 * x_2] and that would not lead to a wrong conclusion like the following... > =A0last_conflict: 1000 > =A0(Subscript distance: 0 > =A0) > =A0) > =A0inner loop index: 0 > =A0loop nest: (1 2 ) > =A0distance_vector: =A0 0 =A0 0 > =A0direction_vector: =A0 =A0 =3D =A0 =A0=3D > )