1 ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
3 ; Test that a lifetime intrinsic isn't removed because that would change semantics
10 define void @foo(i1 %x) {
13 call void @llvm.lifetime.start.p0(i64 -1, ptr %a) nounwind
14 br i1 %x, label %bb0, label %bb1
17 call void @llvm.lifetime.end.p0(i64 -1, ptr %a) nounwind
27 declare void @llvm.lifetime.start.p0(i64, ptr nocapture) nounwind
29 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) nounwind