[Mono-bugs] [Bug 55937][Wis] Changed - [PATCH] When initing an array we emit a temp when a dup would suffice
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Mar 2004 23:39:00 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=55937
--- shadow/55937 2004-03-22 23:37:50.000000000 -0500
+++ shadow/55937.tmp.9123 2004-03-22 23:39:00.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 55937
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: bmaurer@users.sf.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -22,6 +22,33 @@
This reduces the size of the code.
------- Additional Comments From bmaurer@users.sf.net 2004-03-22 23:37 -------
Created an attachment (id=7062)
Patch
+
+------- Additional Comments From bmaurer@users.sf.net 2004-03-22 23:39 -------
+THe attached patch makes us use a pattern like:
+newarr
+dup
+// set 1
+
+dup
+// set 2
+
+dup
+// set 3
+
+// set 4
+
+rather than
+
+newarr
+stloc.x
+
+ldloc.x
+// set 1
+
+ldloc.x
+// set 2
+
+...