[all-commits] [llvm/llvm-project] 21b03b: [llvm] Handle dso_local_equivalent in FunctionComp...

PiJoules via All-commits all-commits at lists.llvm.org
Thu Sep 22 11:46:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21b03bf9706138b8b8f0b0ab06df763acad17704
      https://github.com/llvm/llvm-project/commit/21b03bf9706138b8b8f0b0ab06df763acad17704
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2022-09-22 (Thu, 22 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp
    A llvm/test/Transforms/MergeFunc/dso_local_equivalent_merged.ll
    A llvm/test/Transforms/MergeFunc/dso_local_equivalent_unmerged.ll

  Log Message:
  -----------
  [llvm] Handle dso_local_equivalent in FunctionComparator

This addresses https://github.com/llvm/llvm-project/issues/51066.

Prior to this, dso_local_equivalent would lead to an llvm_unreachable in
a switch in the FunctionComparator. This adds a conservative case in
that switch that just compares the underlying functions.

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




More information about the All-commits mailing list