[Mono-dev] CIL to CIL optimizer

Miguel de Icaza miguel at ximian.com
Mon Aug 14 13:01:24 EDT 2006


> First things first: it's nice you'll do the CIL-CIL optimizer, but
> there are plans to do this in the JIT anyway, where these things
> belong.

I think there is a natural barrier imposed by the CIL language on the
kinds of optimizations that should be performed at each stage.

A CIL-to-CIL optimizer could probably do constant folding very easily or
simplify some of the bad code generated by mcs for things like:

	object.indexer [value++] += something_else

As Massi point out, the most interesting optimizations are not very
useful at the CIL level, they wont hurt to have them done at the CIL
level, but the JIT will have to do them later anyways.

More information about the Mono-devel-list mailing list