[all-commits] [llvm/llvm-project] 76e07d: [LibCall] Infer nocallback for libcalls (#135173)

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Apr 12 00:12:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76e07d8ba5286daf349ef19588c8c011162bec09
      https://github.com/llvm/llvm-project/commit/76e07d8ba5286daf349ef19588c8c011162bec09
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-04-12 (Sat, 12 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll
    M llvm/test/Transforms/InferFunctionAttrs/readonly_and_writeonly.ll
    M llvm/test/Transforms/LICM/strlen.ll
    M llvm/test/Transforms/LoopIdiom/basic.ll
    M llvm/test/Transforms/LoopIdiom/memset-pattern-tbaa.ll
    M llvm/test/Transforms/LoopIdiom/struct_pattern.ll
    M llvm/test/Transforms/LoopIdiom/unroll-custom-dl.ll
    M llvm/test/Transforms/LoopIdiom/unroll.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/X86/memset-pattern.ll

  Log Message:
  -----------
  [LibCall] Infer nocallback for libcalls (#135173)

This patch adds `nocallback` attributes for string/math libcalls. It
allows FuncAttributor to infer `norecurse` more precisely and encourages
more aggressive global optimization.



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