From patchwork Thu Oct 28 22:58:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 69512 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 733DBB70DC for ; Fri, 29 Oct 2010 09:59:41 +1100 (EST) Received: (qmail 8628 invoked by alias); 28 Oct 2010 22:59:24 -0000 Received: (qmail 8506 invoked by uid 22791); 28 Oct 2010 22:59:24 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Oct 2010 22:59:19 +0000 Received: by mail-yx0-f175.google.com with SMTP id 42so1758523yxe.20 for ; Thu, 28 Oct 2010 15:59:19 -0700 (PDT) Received: by 10.91.17.37 with SMTP id u37mr3508943agi.191.1288306759427; Thu, 28 Oct 2010 15:59:19 -0700 (PDT) Received: from napoca (adsl-76-244-77-0.dsl.austtx.sbcglobal.net [76.244.77.0]) by mx.google.com with ESMTPS id m4sm1145436yha.26.2010.10.28.15.59.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 15:59:19 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Thu, 28 Oct 2010 17:59:15 -0500 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, Sebastian Pop Subject: [PATCH 6/6] Move loop flattening and SLP vectorization at the end of loop transforms. Date: Thu, 28 Oct 2010 17:58:22 -0500 Message-Id: <1288306702-5543-7-git-send-email-sebpop@gmail.com> In-Reply-To: <1288306702-5543-1-git-send-email-sebpop@gmail.com> References: <1288306702-5543-1-git-send-email-sebpop@gmail.com> 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 2010-10-20 Sebastian Pop * passes.c (init_optimization_passes): Move pass_flatten_loops and pass_slp_vectorize at the end of the loop transforms. --- gcc/ChangeLog | 5 +++++ gcc/passes.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8907244..d1215cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-10-20 Sebastian Pop + * passes.c (init_optimization_passes): Move pass_flatten_loops and + pass_slp_vectorize at the end of the loop transforms. + +2010-10-20 Sebastian Pop + * passes.c (init_optimization_passes): Do not call pass_if_conversion after pass_flatten_loops. * tree-flow.h (gate_tree_if_conversion): Declared. diff --git a/gcc/passes.c b/gcc/passes.c index ed81018..82d5c74 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -913,11 +913,11 @@ init_optimization_passes (void) } NEXT_PASS (pass_predcom); NEXT_PASS (pass_complete_unroll); - NEXT_PASS (pass_flatten_loops); - NEXT_PASS (pass_slp_vectorize); NEXT_PASS (pass_parallelize_loops); NEXT_PASS (pass_loop_prefetch); NEXT_PASS (pass_iv_optimize); + NEXT_PASS (pass_flatten_loops); + NEXT_PASS (pass_slp_vectorize); NEXT_PASS (pass_tree_loop_done); } NEXT_PASS (pass_cse_reciprocals);