1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
3 ; A lifetime end intrinsic should not prevent a call from being tail call
6 define void @foobar() {
9 ; CHECK: leaq 4(%rsp), %rdi
15 %0 = bitcast i32* %i to i8*
16 call void @llvm.lifetime.start.p0i8(i64 4, i8* nonnull %0)
17 call void @foo(i32* nonnull %i)
19 call void @llvm.lifetime.end.p0i8(i64 4, i8* nonnull %0)
23 declare void @foo(i32* nocapture %p)
26 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)
27 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture)