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: unassignedb...@nondot.org
          Reporter: h...@chromium.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to