[PATCH] D131034: [Backend][X86] Improved tail call optimization for functions marked as musttail

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 14:09:13 PDT 2022


efriedma added a comment.

For reference, example of copying arguments in memory for musttail follows (which is still broken with this patch).  I think leaving this broken was intentional...?

  struct A {
      int a[5];
  };
  extern int G(A a, A b);
  int F(A a, A b) {
      [[clang::musttail]] return G(b, a);
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131034/new/

https://reviews.llvm.org/D131034



More information about the llvm-commits mailing list