[llvm] [PowerPC] support tail call optimization on AIX tail call (PR #161690)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 12:12:15 PST 2025


================
@@ -108,7 +108,7 @@ define dso_local void @print_func() {
 ; LINUX64BE-NEXT:    mtlr r0
 ; LINUX64BE-NEXT:    blr
 entry:
-  %call = tail call signext i32 @puts(ptr noundef nonnull dereferenceable(1) @.str)
----------------
RolandF77 wrote:

What does removing the tail attribute accomplish? Also a number of those cases are the last real instruction, with only a return after which returns void or the call result. and those should be possible.

https://github.com/llvm/llvm-project/pull/161690


More information about the llvm-commits mailing list