[llvm-commits] [LLVM, SwitchInst, case ranges] Auxiliary patch #1

Anton Korobeynikov asl at math.spbu.ru
Mon Oct 31 15:53:33 PDT 2011


Hi Duncan,

> be the opposite: they might make switches harder to work with and reason about
> for no advantage.  Which is it?  Do you have an example where case ranges would
> result in better code, or make it easier to produce better code?
I think the typical example is some code which produces large
switches. In the frontend we
won't emit such large switches and end with explicit comparisons instead.

Do you have some example of this from Ada world? I believe I saw
something like this in Polyhedron, but I'm not sure.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-commits mailing list