From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16264 invoked by alias); 14 Feb 2012 19:42:49 -0000 Received: (qmail 16254 invoked by uid 22791); 14 Feb 2012 19:42:48 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_TM 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; Tue, 14 Feb 2012 19:42:36 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/50969] 17% degradation in 168.wupwise for interleave via permutation Date: Tue, 14 Feb 2012 19:42: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: RESOLVED 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-02/txt/msg01459.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50969 --- Comment #5 from William J. Schmidt 2012-02-14 19:40:22 UTC --- Author: wschmidt Date: Tue Feb 14 19:40:13 2012 New Revision: 184225 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184225 Log: 2012-02-14 Bill Schmidt Ira Rosen PR tree-optimization/50031 PR tree-optimization/50969 * targhooks.c (default_builtin_vectorization_cost): Handle vec_promote_demote. * target.h (enum vect_cost_for_stmt): Add vec_promote_demote. * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle all types of reduction and pattern statements. (vect_estimate_min_profitable_iters): Likewise. * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function. (vect_model_store_cost): Use vec_perm rather than vector_stmt for statement cost. (vect_model_load_cost): Likewise. (vect_get_load_cost): Likewise; add dump logic for explicit realigns. (vectorizable_type_demotion): Call vect_model_promotion_demotion_cost. (vectorizable_type_promotion): Likewise. * config/spu/spu.c (spu_builtin_vectorization_cost): Handle vec_promote_demote. * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update vec_perm for VSX and handle vec_promote_demote. Modified: branches/ibm/gcc-4_6-branch/gcc/ChangeLog.ibm branches/ibm/gcc-4_6-branch/gcc/config/i386/i386.c branches/ibm/gcc-4_6-branch/gcc/config/rs6000/rs6000.c branches/ibm/gcc-4_6-branch/gcc/config/spu/spu.c branches/ibm/gcc-4_6-branch/gcc/target.h branches/ibm/gcc-4_6-branch/gcc/targhooks.c branches/ibm/gcc-4_6-branch/gcc/tree-vect-loop.c branches/ibm/gcc-4_6-branch/gcc/tree-vect-stmts.c