From z Tue Dec 05 15:33:40 2000
Received: from maguro.epr.com ([198.3.162.27]) by exchange.epr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id WNKA3F7R; Tue, 5 Dec 2000 06:30:46 -0800
Received: from magrathea.epr.com (firewall-user@magrathea.epr.com [198.3.160.1])
	by maguro.epr.com (8.9.3/8.9.3) with ESMTP id GAA11392
	for <sweeks@intertrust.com>; Tue, 5 Dec 2000 06:34:41 -0800 (PST)
Received: (from uucp@localhost) by magrathea.epr.com (8.9.3/8.7.3) id GAA05481 for <sweeks@intertrust.com>; Tue, 5 Dec 2000 06:34:41 -0800 (PST)
Received: from nodnsquery(199.222.69.4) by magrathea.epr.com via smap (V5.5)
	id xma005400; Tue, 5 Dec 00 06:33:49 -0800
Received: from clairv.com (IDENT:root@pc246.edi.nunet.net [199.249.165.246])
	by mail.acm.org (8.9.3/8.9.3) with ESMTP id JAA39286
	for <sweeks@acm.org>; Tue, 5 Dec 2000 09:33:46 -0500
Received: from simon.cs.cornell.edu (simon.cs.cornell.edu [128.84.154.10])
	by clairv.com (8.9.3/8.9.3) with ESMTP id IAA06330
	for <MLton@sourcelight.com>; Tue, 5 Dec 2000 08:33:44 -0600
Received: from sundial.cs.cornell.edu (sundial.cs.cornell.edu [128.84.96.115])
	by simon.cs.cornell.edu (8.9.3/8.9.3/R-3.1) with ESMTP id JAA01144
	for <MLton@sourcelight.com>; Tue, 5 Dec 2000 09:33:43 -0500 (EST)
Received: from hoho.cs.cornell.edu (hoho.cs.cornell.edu [128.84.96.89])
	by sundial.cs.cornell.edu (8.9.3/8.9.3/M-3.2) with ESMTP id JAA16158
	for <MLton@sourcelight.com>; Tue, 5 Dec 2000 09:33:40 -0500 (EST)
Received: from localhost (fluet@localhost)
	by hoho.cs.cornell.edu (8.9.3/8.9.3/C-3.0) with SMTP id JAA17805
	for <MLton@sourcelight.com>; Tue, 5 Dec 2000 09:33:40 -0500 (EST)
X-Authentication-Warning: hoho.cs.cornell.edu: fluet owned process doing -bs
Date: Tue, 5 Dec 2000 09:33:40 -0500 (EST)
From: Matthew Fluet <fluet@CS.Cornell.EDU>
Reply-To: Matthew Fluet <fluet@CS.Cornell.EDU>
To: MLton@sourcelight.com
Subject: Re: jump tables and cases
In-Reply-To: <14892.3472.431446.162924@eponym.epr.com>
Message-ID: <Pine.SOL.3.95.1001204215643.1228A-100000@hoho.cs.cornell.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	eponym.sweeks.com
X-Spam-Level: 
X-Spam-Status: No, hits=-100.0 required=3.0 tests=AWL,USER_IN_WHITELIST 
	autolearn=no version=2.60


> > > Were the changes to preserve big integer case statements ever added to
> > > MLton?
> > 
> > Yes.  Although I'm not sure they're getting used.  It's near the top of my todo
> > list to look into mlyacc and make sure they are.
> 
> I just checked and the integer switches are making it all the way to the
> generated C code, so it appears to be working correctly.

Then I'm a little confused; If in my source .sml file, I have

case x 
  of 0 => ...
   | 1 => ...
   ...
   | _ => ...

then what do I have in the CPS IL?  A set of transfers corresponding to a
binary search tree, or a single switch transfer?


