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 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i)
16 call void @foo(ptr nonnull %i)
18 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i)
22 declare void @foo(ptr nocapture %p)
25 declare void @llvm.lifetime.start.p0(i64, ptr nocapture)
26 declare void @llvm.lifetime.end.p0(i64, ptr nocapture)