[Issue 8431] [Optimizer] Merge equivalent jump tables for switch statements

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 25 01:50:04 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8431



--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-07-25 01:50:03 PDT ---
(In reply to comment #1)
> No need for "final switch"?
> 

Why would it? Final allows @system code to omit bounds check that's all.

> The presence of this optimization covers one use case of computed gotos
> (assuming the programmer is careful in defining the inner switch() with all the
> cases of the outer switch).

I bet there could be other use cases.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list