There's a Optimizations() method in Method class but it is commented so I
didn't look at all at what it does.
Btw, I think I don't have today enough knowledge in the AOT process to
propose such compiler optimization.
I'll get deeper into the code, and maybe I'll emerge to submit you another
patch ;-)
Cédric
On Mon, Feb 25, 2008 at 6:18 PM, Darx Kies <[EMAIL PROTECTED]> wrote:
> Stanisław Pitucha wrote:
> > On Mon, Feb 25, 2008 at 4:31 PM, Cédric Rousseau <[EMAIL PROTECTED]>
> wrote:
> >
> >> The first one is directly in the IL code generated by the C# compiler.
> I
> >> don't know why but the compiler sometime produce a pattern like this:
> >> IL_0005: br.s IL_0007
> >> IL_0007: ...
> >> This code is obviously translated to "jmp $+5". The proposed correction
> is
> >> to check if the offset equals 2, and in this case to remove the IL
> >> instruction.
> >>
> >
> > Don't we rearrange blocks how we want in cil stage? The branch should
> > be left there and optimalization should take place during joining
> > blocks of assembly... Now it's joining 2 blocks into one and may mess
> > up stack length yet another time after sorting blocks.
> > Am I right?
> >
> You are right. :)
>
> Chriss.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> SharpOS-Developers mailing list
> SharpOS-Developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sharpos-developers
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers