[all-commits] [llvm/llvm-project] 6f0ca0: [Attributor] Introduce AAGlobalValueInfo to track ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Aug 29 23:06:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f0ca01c570510dcfd1487b33c93f6aefa0bbf0b
      https://github.com/llvm/llvm-project/commit/6f0ca01c570510dcfd1487b33c93f6aefa0bbf0b
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/test/Transforms/Attributor/callgraph.ll

  Log Message:
  -----------
  [Attributor] Introduce AAGlobalValueInfo to track global value uses

GlobalValues are often interesting, especially if they have local
linkage. We now track all uses of those and refine potential callees
with it. Effectively, if an internal function cannot reach an indirect
call site, it cannot be a potential callee, even if it has its address
taken.




More information about the All-commits mailing list