[all-commits] [llvm/llvm-project] c7f7ac: [MergeFunc] Keep comdat on new function, not thunk...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Mar 10 11:14:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7f7ac759110cdcf0d9180515a414c494154d213
      https://github.com/llvm/llvm-project/commit/c7f7ac759110cdcf0d9180515a414c494154d213
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/IPO/MergeFunctions.cpp
    M llvm/test/Transforms/MergeFunc/comdat.ll

  Log Message:
  -----------
  [MergeFunc] Keep comdat on new function, not thunk. (#130583)

MergeFunc uses the original function F as Thunk and creates a new function NewF for the original function F. Preserve F's comdat info on NewF instead of the thunk.

This fixes a crash when trying to lower comdat on the thunk during codegen.



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