[Mono-bugs] [Bug 62008][Wis] New - [PATCH] dont create temporaries for other temporaries

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Jul 2004 12:43:53 -0400 (EDT)


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 bmaurer@users.sf.net.

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

--- shadow/62008	2004-07-27 12:43:53.000000000 -0400
+++ shadow/62008.tmp.27091	2004-07-27 12:43:53.000000000 -0400
@@ -0,0 +1,27 @@
+Bug#: 62008
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] dont create temporaries for other temporaries
+
+in handle_loaded_temps, we create temporaries for everything on the stack
+whenever an instruction might modify data.
+
+This optimization marks some variables as temporaries -- they will only be
+written to once. handle_loaded_temps will not copy them into a new
+variable, as they will never be clobbered.
+
+This saves 2% of the variables we create when compiling corlib. It reduces
+the size of the code by 10 kb.