[Mono-bugs] [Bug 444026] New: Use tail. prefix when applicable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 11 23:26:03 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=444026


           Summary: Use tail. prefix when applicable
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lunchtimemama at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I was paging through the CLI standard and came across the tail. prefix which
can be applied to a call, calli, or callvirt instruction if that call
instruction immediately precedes a ret instruction. The prefix, "indicates that
the current method's stack frame is no longer required and thus can be removed
before the call instruction is executed. Because the value returned by the call
will be the value returned by this method, the call can be converted into a
cross-method jump."

Test Case:

class Foo {
    int Bar() { return Bar(0); }


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list