Lines Matching refs:lifetime
13 declare void @llvm.lifetime.start.p0(i64, ptr nocapture) nounwind
14 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) nounwind
18 ; Check that lifetime intrinsics are removed along with the pointer.
21 ; CHECK-NOT: llvm.lifetime.start
22 ; CHECK-NOT: llvm.lifetime.end
24 call void @llvm.lifetime.start.p0(i64 -1, ptr %i)
25 call void @llvm.lifetime.end.p0(i64 -1, ptr %i)
31 ; Check that lifetime intrinsics are removed along with the pointer.
34 ; CHECK-NOT: llvm.lifetime.start
35 ; CHECK-NOT: llvm.lifetime.end
36 call void @llvm.lifetime.start.p0(i64 -1, ptr %0)
37 call void @llvm.lifetime.end.p0(i64 -1, ptr %0)
45 ; Check that lifetime intrinsics are removed along with the pointer.
48 ; CHECK-NOT: llvm.lifetime.start
49 ; CHECK-NOT: llvm.lifetime.end
50 call void @llvm.lifetime.start.p0(i64 -1, ptr @glob)
51 call void @llvm.lifetime.end.p0(i64 -1, ptr @glob)
57 ; Check that lifetime intrinsics are NOT removed when the pointer is a bitcast.
58 ; It's not uncommon for two bitcasts to be made: one for lifetime, one for use.
62 ; CHECK-NEXT: llvm.lifetime.start
63 ; CHECK-NEXT: llvm.lifetime.end
66 call void @llvm.lifetime.start.p0(i64 -1, ptr %2)
67 call void @llvm.lifetime.end.p0(i64 -1, ptr %2)