From patchwork Wed Oct 27 20:39:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 69409 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1CC4EB6EF2 for ; Thu, 28 Oct 2010 07:39:37 +1100 (EST) Received: (qmail 24088 invoked by alias); 27 Oct 2010 20:39:35 -0000 Received: (qmail 24078 invoked by uid 22791); 27 Oct 2010 20:39:35 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.17.167) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Oct 2010 20:39:29 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.1/8.13.1) with ESMTP id o9RKdPUh024647 for ; Wed, 27 Oct 2010 20:39:25 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9RKdQB23756192 for ; Wed, 27 Oct 2010 22:39:26 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o9RKdP0Q019515 for ; Wed, 27 Oct 2010 22:39:25 +0200 Received: from d12ml102.megacenter.de.ibm.com (d12ml102.megacenter.de.ibm.com [9.149.170.85]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id o9RKdPuq019509; Wed, 27 Oct 2010 22:39:25 +0200 In-Reply-To: References: Subject: Re: [patch] New loop flattening pass on tree-ssa X-KeepSent: AFC35A7A:7F05A24D-C22577C9:0070D038; type=4; name=$KeepSent To: Sebastian Pop Cc: GCC Patches , Richard Guenther Message-ID: From: Ira Rosen Date: Wed, 27 Oct 2010 22:39:03 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Sebastian Pop wrote on 27/10/2010 09:41:43 PM: > prefetch and iv-opt could be done before loop flattening. > I don't know if we could move these two passes before SLP-vect. > Any ideas here Richi? Ira? I tried to move SLP after iv-opt: and nothing bad happened to SLP tests. So it seems to be ok from the SLP point of view. Ira > > Thanks, > Sebastian > [attachment "0001-Call-if-conversion-from-loop-flattening.patch" > deleted by Ira Rosen/Haifa/IBM] Index: passes.c =================================================================== --- passes.c (revision 165969) +++ passes.c (working copy) @@ -913,10 +913,10 @@ } NEXT_PASS (pass_predcom); NEXT_PASS (pass_complete_unroll); - NEXT_PASS (pass_slp_vectorize); NEXT_PASS (pass_parallelize_loops); NEXT_PASS (pass_loop_prefetch); NEXT_PASS (pass_iv_optimize); + NEXT_PASS (pass_slp_vectorize); NEXT_PASS (pass_tree_loop_done); } NEXT_PASS (pass_cse_reciprocals);