[PATCH] D134300: [llvm] Handle dso_local_equivalent in FunctionComparator
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 20 12:04:14 PDT 2022
leonardchan created this revision.
leonardchan added a reviewer: phosek.
leonardchan added a project: LLVM.
Herald added subscribers: abrachet, hiraditya.
Herald added a project: All.
leonardchan requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134300
Files:
clang/test/CodeGenCXX/pr51066.cpp
llvm/lib/Transforms/Utils/FunctionComparator.cpp
llvm/test/Transforms/MergeFunc/dso_local_equivalent_merged.ll
llvm/test/Transforms/MergeFunc/dso_local_equivalent_unmerged.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134300.461651.patch
Type: text/x-patch
Size: 5084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/b70cb7a4/attachment.bin>
More information about the llvm-commits
mailing list