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

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 10:07:56 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)
----------------
diggerlin wrote:

sorry that the test case is changed before following commit in the patch.
 commit f8cbacb282a0986827f82d5c1074d4339d2bf599
Author: zhijian <zhijian at ca.ibm.com>
Date:   Mon Oct 27 17:35:13 2025 +0000

    add share TOC base
    
  after the commit , It check whether it is external symbol , if it is , there maybe different TOC, we do not support tail call, I need to revert the test case change back.

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


More information about the llvm-commits mailing list