[Mono-bugs] [Bug 40225][Wis] Changed - A wish for the JIT: Encode x * -1 with NEG EAX on x86

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 25 Mar 2003 06:54:45 -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 lupus@ximian.com.

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

--- shadow/40225	Mon Mar 24 18:22:47 2003
+++ shadow/40225.tmp.20244	Tue Mar 25 06:54:45 2003
@@ -1,14 +1,14 @@
 Bug#: 40225
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathias.hasselmann@gmx.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -32,6 +32,13 @@
 }
 
 This style of code just saved me lot of code duplication and it saved me
 alot of complex boolean evaluations. So my concrete code looks good
 already. Nevertheless my code would rock much more, if I knew Mono
 processes it efficently. ;o)
+
+------- Additional Comments From lupus@ximian.com  2003-03-25 06:54 -------
+It's something that is very easy to add (in a platform-independent
+way, since a negation is always cheaper than a multiplication), but
+note that, unless the jit can determine foo is a constant (or at least
+non-zero) the optimization can't be applied to your code.
+Also note that the condition of the for loop looks wrong, too.