From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14332 invoked by alias); 27 Jul 2012 16:27:04 -0000 Received: (qmail 14262 invoked by uid 22791); 27 Jul 2012 16:27:02 -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; Fri, 27 Jul 2012 16:26:49 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53773] Vectorizer generates non-canonical multiplies Date: Fri, 27 Jul 2012 16:27: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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-07/txt/msg02043.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53773 --- Comment #4 from William J. Schmidt 2012-07-27 16:26:47 UTC --- Operand swapping is also done in vect_is_slp_reduction. Places that rely on the reduction operand being the last operand: * vect_model_reduction_cost * vectorizable_reduction * vect_recog_dot_prod_pattern * vect_recog_widen_sum_pattern Some commentary in vectorizable_reduction indicates that the last-operand rule is not used for nested cycles, so there are a few places where a reduc_index parameter is passed around instead.