[Issue 4383] Optimizer doesn't keep floating point values on the stack if used more than once

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 24 12:52:25 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4383



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-06-24 12:52:21 PDT ---
(In reply to comment #1)
> Sounds like a prime case for a keyhole optimization. Does DMD have the
> infrastructure in place to do that?

Yes, there's pinholeopt() in cod3.c. But this optimisation should be done
earlier.
Although it seems as though you could replace:
fstp XXX; fld XXX;  with fst XXX; there's unfortunately no fst instruction for
80-bit reals, and for doubles and floats it can change the rounding.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list