[llvm] [InlineCost]: Optimize inlining of recursive function. (PR #139982)
Hassnaa Hamdi via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 09:15:27 PDT 2025
================
@@ -0,0 +1,45 @@
+; RUN: opt -passes='cgscc(inline),instcombine,cgscc(inline)' -S -debug-only=inline -disable-output < %s 2>&1 | FileCheck %s
----------------
hassnaaHamdi wrote:
Here I just want to show the difference between this approach and the old approach in the other patch.
This tests shows that the recursive function will not get simplified unless the caller is the function itself, not another caller as the old patch was doing.
https://github.com/llvm/llvm-project/pull/139982
More information about the llvm-commits
mailing list