From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3913 invoked by alias); 27 Aug 2010 15:03:19 -0000 Received: (qmail 3827 invoked by uid 22791); 27 Aug 2010 15:03:19 -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-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Aug 2010 15:03:15 +0000 Received: by qwa26 with SMTP id 26so689286qwa.20 for ; Fri, 27 Aug 2010 08:03:13 -0700 (PDT) Received: by 10.229.37.147 with SMTP id x19mr602560qcd.187.1282921393114; Fri, 27 Aug 2010 08:03:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.19.193 with HTTP; Fri, 27 Aug 2010 08:02:53 -0700 (PDT) In-Reply-To: References: From: "Paulo J. Matos" Date: Fri, 27 Aug 2010 15:09:00 -0000 Message-ID: Subject: Re: Clustering switch cases To: Ian Lance Taylor Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00401.txt.bz2 On Fri, Aug 27, 2010 at 3:47 PM, Ian Lance Taylor wrote: > > I don't know of any specific reason not to look for clusters of switch > cases. =C2=A0The main issue would be the affect on compilation time. =C2= =A0If you > can do it with an algorithm which is linear in the number of cases, then > I think it would be an acceptable optimization. > Thanks. I will be working on it. I will let you know how it goes. Cheers, --=20 PMatos