[all-commits] [llvm/llvm-project] 3afc3f: [MergeFunc] Remove discardables function before wr...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Feb 27 07:27:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3afc3f43f0ba155e9655367c8bfa25eff5dfaf0f
      https://github.com/llvm/llvm-project/commit/3afc3f43f0ba155e9655367c8bfa25eff5dfaf0f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/IPO/MergeFunctions.cpp
    M llvm/test/Transforms/MergeFunc/linkonce.ll
    M llvm/test/Transforms/MergeFunc/linkonce_odr.ll
    M llvm/test/Transforms/MergeFunc/merge-linkonce-odr.ll

  Log Message:
  -----------
  [MergeFunc] Remove discardables function before writing alias or thunk. (#128865)

Update writeThunkOrAlias to only create an alias or thunk if it is
actually needed. Drop discardable linkone_odr functions if they are not
used before.

PR: https://github.com/llvm/llvm-project/pull/128865



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