[all-commits] [llvm/llvm-project] c81d84: [InlineCost]: Optimize inlining of recursive func...

Hassnaa Hamdi via All-commits all-commits at lists.llvm.org
Wed Jun 4 03:42:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c81d84c30b45b78a41cdfeceabbe6d784372ea30
      https://github.com/llvm/llvm-project/commit/c81d84c30b45b78a41cdfeceabbe6d784372ea30
  Author: Hassnaa Hamdi <hassnaa.hamdi at arm.com>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M llvm/lib/Analysis/InlineCost.cpp
    A llvm/test/Transforms/Inline/inline-recursive-fn2.ll

  Log Message:
  -----------
   [InlineCost]: Optimize inlining of recursive function. (#139982)

- Consider inlining recursive function of depth 1 only when
    the caller is the function itself instead of inlining it
    for each callsite so that we avoid redundant work.
- Use CondContext instead of DomTree for better compilation time.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list