llvm-6502/test/Transforms/MergeFunc/too-small.ll
Matt Arsenault 187c774a76 Don't merge tiny functions.
It's silly to merge functions like these:

define void @foo(i32 %x) {
  ret void
}

define void @bar(i32 %x) {
  ret void
}

to get

define void @bar(i32) {
  tail call void @foo(i32 %0)
  ret void
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191786 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-01 18:05:30 +00:00

15 lines
206 B
LLVM

; RUN: opt -S -mergefunc < %s | FileCheck %s
define void @foo(i32 %x) {
; CHECK-LABEL: @foo(
; CHECK-NOT: call
ret void
}
define void @bar(i32 %x) {
; CHECK-LABEL: @bar(
; CHECK-NOT: call
ret void
}