[llvm-bugs] [Bug 26303] New: [X86] Reuse stack slots for more tail calls

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 25 16:03:29 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26303

            Bug ID: 26303
           Summary: [X86] Reuse stack slots for more tail calls
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org
            Blocks: 26299
    Classification: Unclassified

Consider the following code:

  int g(int);
  int f(int x) {
    return g(42);
  }

GCC 5.3 will reuse the stack slot for x and tail-call g:

f(int):
        movl    $42, 4(%esp)
        jmp     g(int)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160126/948f73a2/attachment.html>


More information about the llvm-bugs mailing list