[Mono-bugs] [Bug 71577][Wis] New - The JIT shouldn't generate code for initlocals if not needed

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 Jan 2005 10:45:52 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=71577

--- shadow/71577	2005-01-21 10:45:52.000000000 -0500
+++ shadow/71577.tmp.30175	2005-01-21 10:45:52.000000000 -0500
@@ -0,0 +1,23 @@
+Bug#: 71577
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The JIT shouldn't generate code for initlocals if not needed
+
+Currently, the JIT basically initializes every variable twice, one for the
+initialization caused by initlocals to be set, and the other because of the
+initialization required by the C# spec. For trusted assemblies, like the
+system assemblies and mcs, we could ignore initlocals in the JIT. Trying
+this sped up a corlib compilation by about 2%.