[Mono-bugs] [Bug 40225][Wis] Changed - A wish for the JIT: Encode x * -1 with NEG EAX on x86
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 email@example.com.
--- shadow/40225 Mon Mar 24 18:22:47 2003
+++ shadow/40225.tmp.20244 Tue Mar 25 06:54:45 2003
@@ -1,14 +1,14 @@
@@ -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 firstname.lastname@example.org 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.