From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9317 invoked by alias); 5 Apr 2012 11:27:58 -0000 Received: (qmail 9290 invoked by uid 22791); 5 Apr 2012 11:27:57 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Apr 2012 11:27:45 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52621] [4.6/4.7/4.8 Regression] ICE with -O3 -march=opteron in initialize_matrix_A, at tree-data-ref.c:1964 Date: Thu, 05 Apr 2012 11:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-04/txt/msg00353.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52621 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |spop at gcc dot gnu.org --- Comment #10 from Richard Guenther 2012-04-05 11:27:02 UTC --- evolution_function_is_univariate_p returns true for {(integer(kind=8)) {0, +, {2, +, 2}_2}_2, +, 1}_3 but that does not look univariate to me - we do not properly look into CHREC_LEFT which is (integer(kind=8)) {0, +, {2, +, 2}_2}_2, so something like @@ -1114,6 +1132,8 @@ evolution_function_is_univariate_p (cons break; default: + if (tree_contains_chrecs (CHREC_LEFT (chrec), NULL)) + return false; break; } @@ -1127,6 +1147,8 @@ evolution_function_is_univariate_p (cons break; default: + if (tree_contains_chrecs (CHREC_RIGHT (chrec), NULL)) + return false; break; } fixes this. Then we ICE the same way in analyze_miv_subscript because we think that beast is affine-multivariate. The above fix looks obvious to me, but what the right condition for failing in analyze_overlapping_iterations should be for "loop_nest" should be, and why using the loop number of the outermost loop of the nest should be sufficient is beyond my understanding. Sebastian, can you help? I can certainly amend /* If they aren't the same, and aren't affine, we can't do anything yet. */ else if ((chrec_contains_symbols (chrec_a) || chrec_contains_symbols (chrec_b)) && (!evolution_function_is_affine_multivariate_p (chrec_a, lnn) || !evolution_function_is_affine_multivariate_p (chrec_b, lnn))) { dependence_stats.num_subscript_undetermined++; *overlap_iterations_a = conflict_fn_not_known (); *overlap_iterations_b = conflict_fn_not_known (); } though it looks to me that this should go into the else part and the analyze_miv_subscript case lacks a proper test.