This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, middle-end] Ping: Switch initializations conversion


Hi,

On Sat, Jul 12, 2008 at 11:31:12AM +0200, Gerald Pfeifer wrote:
> Would you mind adding a description of this to gcc-4.4/changes.html
> (http://gcc.gnu.or/gcc-4.4/changes.html)?

Do you  mean something along the  lines of the patch  below?  (I don't
really know what the rules for approving and committing wwwdocs are so
so far I have not committed anything).

On Sat, Jul 12, 2008 at 09:57:28AM -0700, Diego Novillo wrote:
> On Sat, Jul 12, 2008 at 02:31, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> 
> > Not completely sure this warrants an entry on the main page, but as a
> > new pass and option, it actually might.  Honza, Diego?  (I still think
> > we are too conservative there. ;-)
> 
> I agree.  This should be announced and it should also go in the new
> features section of our release notes at some point.

OK, am I supposed to do anything with regard to the above?

Thanks,

Martin

Index: htdocs/gcc-4.4/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/changes.html,v
retrieving revision 1.17
diff -u -r1.17 changes.html
--- htdocs/gcc-4.4/changes.html	12 Jul 2008 08:21:14 -0000	1.17
+++ htdocs/gcc-4.4/changes.html	14 Jul 2008 12:32:31 -0000
@@ -87,6 +87,15 @@
 
 <h2>General Optimizer Improvements</h2>
 
+  <ul>
+    <li>A new command-line switch <code>-ftree-switch-conversion</code> has
+      been added.  The new pass turns simple initializations of scalar
+      variables in switch statements into initiazlizations from a static array,
+      given that all the values are known at compile time and the ratio between
+      the new array size and the original switch branches does not exceed 
+      the parameter <code>--param switch-conversion-max-branch-ratio</code> 
+      (default is eight).  </li>
+  </ul>
 
 <h2>New Languages and Language specific improvements</h2>
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]