mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
187c774a76
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
15 lines
206 B
LLVM
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
|
|
}
|
|
|