llvm-project/llvm/test/Transforms/MergeFunc/merge-small-unnamed-addr.ll

15 lines
277 B
LLVM
Raw Normal View History

; RUN: opt -S -mergefunc < %s | FileCheck %s
; CHECK-NOT: @b
@x = constant { void ()*, void ()* } { void ()* @a, void ()* @b }
; CHECK: { void ()* @a, void ()* @a }
define internal void @a() unnamed_addr {
ret void
}
define internal void @b() unnamed_addr {
ret void
}