Home | History | Annotate | Download | only in MergeFunc
      1 ; RUN: opt -mergefunc -S < %s | FileCheck %s
      2 
      3 ; Weak functions too small for merging to be profitable
      4 
      5 ; CHECK: define weak i32 @foo(i8*, i32)
      6 ; CHECK-NEXT: ret i32 %1
      7 ; CHECK: define weak i32 @bar(i8*, i32)
      8 ; CHECK-NEXT: ret i32 %1
      9 
     10 define weak i32 @foo(i8*, i32) #0 {
     11     ret i32 %1
     12 }
     13 
     14 define weak i32 @bar(i8*, i32) #0 {
     15     ret i32 %1
     16 }
     17