[Mono-bugs] [Bug 61450][Nor] Changed - [PATCH] use xor esi, esi to set a regvar to 0

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 29 Jul 2004 15:15:27 -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=61450

--- shadow/61450	2004-07-29 15:14:01.000000000 -0400
+++ shadow/61450.tmp.2995	2004-07-29 15:15:27.000000000 -0400
@@ -38,6 +38,19 @@
 
 
 ------- Additional Comments From bmaurer@users.sf.net  2004-07-29 15:14 -------
 Created an attachment (id=8781)
 newer patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-07-29 15:15 -------
+The old patch prevented the following rules from being used:
+
+ stmt: CEE_STIND_I2 (OP_REGVAR, OP_ICONST),
+ stmt: CEE_STIND_I1 (OP_REGVAR, OP_ICONST),
+ stmt: CEE_STIND_REF (OP_REGVAR, OP_ICONST),
+ stmt: CEE_STIND_I (OP_REGVAR, OP_ICONST)
+
+because the engine would choose to load the constant into a register
+(as that also had a cost of two.
+
+The newer version of the patch just makes the xor rule a zero cost rule.