diff options
Diffstat (limited to 'llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll')
-rw-r--r-- | llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll b/llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll index 61c4618..75b152f 100644 --- a/llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll +++ b/llvm/test/tools/llvm-reduce/reduce-operands-alloca.ll @@ -67,3 +67,15 @@ define void @alloca_constexpr_elt() { store i32 0, ptr %alloca ret void } + +; CHECK-LABEL: @alloca_lifetimes( +; ZERO: call void @llvm.lifetime.start.p0(ptr %alloca) +; ONE: call void @llvm.lifetime.start.p0(ptr %alloca) +; POISON: call void @llvm.lifetime.start.p0(ptr %alloca) +define void @alloca_lifetimes() { + %alloca = alloca i32 + call void @llvm.lifetime.start.p0(ptr %alloca) + store i32 0, ptr %alloca + call void @llvm.lifetime.end.p0(ptr %alloca) + ret void +} |