[Issue 6189] register content destroyed in function prolog

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 10:31:44 PDT 2011


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



--- Comment #4 from dawg at dawgfoto.de 2011-08-29 10:31:41 PDT ---
Rough sketch of improvements.

I.  cgreg_assign/cgreg_benefit (cgreg.c)
When doing register benefit calculation, add block weights for the fastpar
register if the symbol is still contained in it. Decrease benefit by -1 for
other registers.

II. prolog (cod3.c)
Strictly sort parameter movings in the following order.
Register to stack, Register to register, Stack to register.
Keep track of used registers and add an assertion that moving to a register
is not conflicting.

-- 
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