-define void @test3(i8*) {
-; CHECK-LABEL: test3
- %a = alloca i8
- call void @llvm.lifetime.start(i64 1, i8* %a)
-; CHECK-NOT: lifetime.start
- call void @llvm.lifetime.end(i64 1, i8* %a)
-; CHECK-NOT: lifetime.end
- call void @llvm.lifetime.start(i64 1, i8* undef)
-; CHECK-NOT: lifetime.start
- call void @llvm.lifetime.end(i64 1, i8* undef)
-; CHECK-NOT: lifetime.end
- ret void
-}
-
-define void @test4(i8*) {
-; CHECK-LABEL: test4
- %a = alloca i8
- call void @llvm.lifetime.start(i64 1, i8* %a)
-; CHECK: lifetime.start
- call void @llvm.lifetime.end(i64 1, i8* %a)
-; CHECK: lifetime.end
- call void @llvm.lifetime.start(i64 1, i8* %0)
-; CHECK: lifetime.start
- call void @llvm.lifetime.end(i64 1, i8* %0)
-; CHECK: lifetime.end
- call void @llvm.lifetime.start(i64 1, i8* %a)
-; CHECK-NOT: lifetime.start
- call void @llvm.lifetime.end(i64 1, i8* %a)
-; CHECK-NOT: lifetime.end
- ret void
-}