mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
710c37c494
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86683 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|