From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6337 invoked by alias); 1 Nov 2010 16:21:30 -0000 Received: (qmail 6322 invoked by uid 22791); 1 Nov 2010 16:21:28 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Mon, 01 Nov 2010 16:21:24 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46259] [4.6 Regression] Revision 166102 failed 416.gamess in SPEC CPU 2006 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: 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 Date: Mon, 01 Nov 2010 16:21:00 -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 X-SW-Source: 2010-11/txt/msg00034.txt.bz2 Message-ID: <20101101162100.99Ftyrn8W5DvU8cUPFsTkl8BZa20xr6mhp7ubeve7aM@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46259 --- Comment #6 from H.J. Lu 2010-11-01 16:21:11 UTC --- (In reply to comment #5) > If I had to guess, one of these two hunks is probably responsible: > > > --- trunk/gcc/tree-vect-stmts.c 2010/10/31 01:58:12 166101 > +++ trunk/gcc/tree-vect-stmts.c 2010/10/31 02:20:22 166102 > @@ -987,9 +987,7 @@ > loop_vec_info loop_vinfo = STMT_VINFO_LOOP_VINFO (stmt_vinfo); > tree vec_inv; > tree vec_cst; > - tree t = NULL_TREE; > tree def; > - int i; > enum vect_def_type dt; > bool is_simple_use; > tree vector_type; > @@ -1055,13 +1049,7 @@ > if (vect_print_dump_info (REPORT_DETAILS)) > fprintf (vect_dump, "Create vector_inv."); > > - for (i = nunits - 1; i >= 0; --i) > - { > - t = tree_cons (NULL_TREE, def, t); > - } > - > - /* FIXME: use build_constructor directly. */ > - vec_inv = build_constructor_from_list (vector_type, t); > + vec_inv = build_vector_from_val (vector_type, def); > return vect_init_vector (stmt, vec_inv, vector_type, NULL); > } > Revert this patch fixes the problem.