[all-commits] [llvm/llvm-project] fa9b1b: [ThinLTO]Mark referencers of local ifunc not eligi...

Mingming Liu via All-commits all-commits at lists.llvm.org
Thu May 16 16:16:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa9b1be45088dce1e4b602d451f118128b94237b
      https://github.com/llvm/llvm-project/commit/fa9b1be45088dce1e4b602d451f118128b94237b
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2024-05-16 (Thu, 16 May 2024)

  Changed paths:
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    A llvm/test/ThinLTO/X86/ref-ifunc.ll

  Log Message:
  -----------
  [ThinLTO]Mark referencers of local ifunc not eligible for import (#92431)

If an ifunc has local linkage, do not add it into ref edges and mark its
referencer (a function or global variable) not eligible for import. An
ifunc doesn't have summary and ThinLTO cannot promote it. Importing the
referencer may cause linkage errors.

To reference a similar fix, https://reviews.llvm.org/D158961 marks
callers of local ifunc not eligible for import to fix
https://github.com/llvm/llvm-project/issues/58740



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