You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
365 B
17 lines
365 B
; 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
|
|
}
|