[all-commits] [llvm/llvm-project] 5f0ac1: Set IgnoreLLVMUsed to false in CallGraph::addToCal...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Thu Apr 8 11:14:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f0ac1ef78880f233dea2070ab55894c6bd2690c
      https://github.com/llvm/llvm-project/commit/5f0ac1ef78880f233dea2070ab55894c6bd2690c
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M llvm/lib/Analysis/CallGraph.cpp
    R llvm/test/Analysis/CallGraph/ignore-llvm-used.ll
    A llvm/test/Analysis/CallGraph/llvm-used.ll

  Log Message:
  -----------
  Set IgnoreLLVMUsed to false in CallGraph::addToCallGraph()

clang++ uses llvm.compiler.used in certain cases to preserve
symbol which is fully inlined. D96087 has resulted in undefined
symbols in such cases. Set it to false by default to preserve
old behavior but keep the option for specific uses where we
want to ignore these (e.g. to detect a potential indirect call
to a function).

Differential Revision: https://reviews.llvm.org/D99897




More information about the All-commits mailing list