1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Transforms/MergeFunc/weak-small.ll

17 lines
365 B
LLVM
Raw Normal View History

; RUN: opt -mergefunc -S < %s | FileCheck %s
; Weak functions too small for merging to be profitable
; CHECK: define weak i32 @foo(i8* %0, i32 %1)
; CHECK-NEXT: ret i32 %1
; CHECK: define weak i32 @bar(i8* %0, i32 %1)
; CHECK-NEXT: ret i32 %1
define weak i32 @foo(i8* %0, i32 %1) #0 {
ret i32 %1
}
define weak i32 @bar(i8* %0, i32 %1) #0 {
ret i32 %1
}