1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ;; Check the cases involving dso_local_equivalent where we do expect functions to be merged.
3 ; RUN: opt -S -passes=mergefunc < %s | FileCheck %s
7 @x = constant { ptr, ptr } { ptr @a, ptr @b }
8 ; CHECK: { ptr @a, ptr @a }
12 ; CHECK-NEXT: ret i32 0
17 define internal i32 @a() unnamed_addr {
19 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 dso_local_equivalent @func()
20 ; CHECK-NEXT: ret i32 [[TMP1]]
22 %1 = call i32 dso_local_equivalent @func()
26 define internal i32 @b() unnamed_addr {
27 %1 = call i32 dso_local_equivalent @func()