[xbuild] Fix bug #676671. Raise AnyEvent .
[mono.git] / mcs / mcs / OPTIMIZE
1 This document describes all code optimalizations performed by Mono C# compiler
2 when optimalizations are enabled via /optimize+ option.
3
4 Optimalizations:
5
6 * Instance field initializer to default value
7 ---------------------------------------------
8
9 Code to optimize:
10
11 class C
12 {
13     enum E
14     {
15         Test
16     }
17     
18     int i = 0;  // Field will not be redundantly assigned
19     int i2 = new int (); // This will be also completely optimized out
20     
21     E e = E.Test; // Even this will go out.
22     
23 }
24
25
26