From patchwork Sat Jul 31 15:27:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 60433 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 7E1C9B70A8 for ; Sun, 1 Aug 2010 01:28:44 +1000 (EST) Received: (qmail 2380 invoked by alias); 31 Jul 2010 15:28:37 -0000 Received: (qmail 2361 invoked by uid 22791); 31 Jul 2010 15:28:36 -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 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; Sat, 31 Jul 2010 15:28:30 +0000 Received: by yxi11 with SMTP id 11so1024179yxi.20 for ; Sat, 31 Jul 2010 08:28:29 -0700 (PDT) Received: by 10.150.56.21 with SMTP id e21mr4872465yba.141.1280590108983; Sat, 31 Jul 2010 08:28:28 -0700 (PDT) Received: from napoca (cpe-70-120-196-107.austin.res.rr.com [70.120.196.107]) by mx.google.com with ESMTPS id h11sm2008803ybk.5.2010.07.31.08.28.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 31 Jul 2010 08:28:28 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Sat, 31 Jul 2010 10:28:25 -0500 From: Sebastian Pop To: Richard Guenther Cc: gcc-patches@gcc.gnu.org, Sebastian Pop Subject: [PATCH 2/3] Enable flag_tree_loop_distribute_memset_zero at -O3. Date: Sat, 31 Jul 2010 10:27:55 -0500 Message-Id: <1280590076-2581-3-git-send-email-sebpop@gmail.com> In-Reply-To: References: 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 --- gcc/doc/invoke.texi | 1 + gcc/opts.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2d61382..ca3238c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6944,6 +6944,7 @@ DO I = 1, N ENDDO @end smallexample and the initialization loop is transformed into a call to memset zero. +This flag is enabled by default at @option{-O3}. @item -ftree-loop-im @opindex ftree-loop-im diff --git a/gcc/opts.c b/gcc/opts.c index 07d7a23..16a337c 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -862,6 +862,7 @@ decode_options (unsigned int argc, const char **argv, /* -O3 optimizations. */ opt3 = (optimize >= 3); + flag_tree_loop_distribute_memset_zero = opt3; flag_predictive_commoning = opt3; flag_inline_functions = opt3; flag_unswitch_loops = opt3;