public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sebastian Pop <sebpop@gmail.com>
To: gcc-patches@gcc.gnu.org
Cc: matz@suse.de,	Sebastian Pop <sebpop@gmail.com>
Subject: [PATCH 2/2] Enable flag_tree_loop_distribute_memset_zero at -O3.
Date: Fri, 30 Jul 2010 20:43:00 -0000	[thread overview]
Message-ID: <1280522440-27919-3-git-send-email-sebpop@gmail.com> (raw)
In-Reply-To: <1280522440-27919-1-git-send-email-sebpop@gmail.com>

---
 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;
-- 
1.7.0.4

  reply	other threads:[~2010-07-30 20:41 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 20:41 [PATCH 0/2] Loop distribution for memset zero Sebastian Pop
2010-07-30 20:43 ` Sebastian Pop [this message]
2010-07-30 20:52 ` [PATCH 1/2] Add pass_loop_distribute_memset_zero Sebastian Pop
2010-07-31 11:35 ` [PATCH 0/2] Loop distribution for memset zero Richard Guenther
2010-07-31 15:28   ` Sebastian Pop
2010-07-31 15:28     ` [PATCH 1/3] Add pass_loop_distribute_memset_zero Sebastian Pop
2010-07-31 15:28     ` [PATCH 0/2] Loop distribution for memset zero Sebastian Pop
2010-07-31 15:31     ` [PATCH 3/3] Add -ftree-loop-distribute-patterns Sebastian Pop
2010-07-31 15:45       ` Sebastian Pop
2010-08-01 12:06         ` Richard Guenther
2010-08-02  9:21           ` Richard Guenther
2010-08-02 15:26             ` [PATCH] Add -ftree-loop-distribute-patterns enabled at -O3 Sebastian Pop
2010-08-07 17:49               ` Gerald Pfeifer
2010-10-21  0:30               ` H.J. Lu
2010-12-18 17:48                 ` H.J. Lu
2010-08-02 16:22             ` [PATCH 3/3] Add -ftree-loop-distribute-patterns Sebastian Pop
2010-07-31 15:34     ` [PATCH 2/3] Enable flag_tree_loop_distribute_memset_zero at -O3 Sebastian Pop
2010-07-31 17:21     ` [PATCH 0/2] Loop distribution for memset zero Michael Matz
2010-07-31 17:36       ` Sebastian Pop
2010-08-01 12:10         ` Richard Guenther
2010-07-31 20:01       ` Joseph S. Myers
2010-08-01 16:19         ` Michael Matz
2010-08-01 12:19     ` Richard Guenther
2010-08-01 15:21       ` Sebastian Pop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1280522440-27919-3-git-send-email-sebpop@gmail.com \
    --to=sebpop@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=matz@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).