1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Transforms/MergeFunc/too-small.ll
Matt Arsenault e06d79aa83 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
}

llvm-svn: 191786
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
}