[Mono-devel-list] [PATCH] Don't spill return from call

Ben Maurer bmaurer at users.sourceforge.net
Fri Apr 23 21:59:26 EDT 2004


Hello,

Right now, we emit the following code:

<type> temp = MyCall ();
var = temp;

For the IL code

var = MyCall ();

By having temporary variables like these, we reduce the chances that
other variables will be put into registers, and increase code size. It
also increases the complexity of analyzing the code.

One thing I was not sure of is why this optimization was commented out.
There was no rationale behind the if (0. The code was commented since
the initial checkin, so i have no idea why it is not enabled.

I had no failures on the regression tests, nor the jit tests. I also did
a bootstrap.

-- Ben 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini-no-call-spill.patch
Type: text/x-patch
Size: 2169 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040423/4aa6d68a/attachment.bin 


More information about the Mono-devel-list mailing list