mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
17 lines
504 B
LLVM
17 lines
504 B
LLVM
|
; RUN: opt -S -dse < %s | FileCheck %s
|
||
|
|
||
|
declare i8* @llvm.init.trampoline(i8*, i8*, i8*)
|
||
|
|
||
|
declare void @f()
|
||
|
|
||
|
define void @unused_trampoline() {
|
||
|
; CHECK: @unused_trampoline
|
||
|
%storage = alloca [10 x i8], align 16 ; <[10 x i8]*> [#uses=1]
|
||
|
; CHECK-NOT: alloca
|
||
|
%cast = getelementptr [10 x i8]* %storage, i32 0, i32 0 ; <i8*> [#uses=1]
|
||
|
%tramp = call i8* @llvm.init.trampoline( i8* %cast, i8* bitcast (void ()* @f to i8*), i8* null ) ; <i8*> [#uses=1]
|
||
|
; CHECK-NOT: trampoline
|
||
|
ret void
|
||
|
; CHECK: ret void
|
||
|
}
|