brintos

brintos / llvm-project-archived public Read only

0
0
Text · 688 B · 94b45d2 Raw
17 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=instructions --test FileCheck --test-arg --check-prefixes=CHECK,INTERESTING --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck -check-prefixes=CHECK,RESULT %s < %t3 4; CHECK-LABEL: define void @alloca(5; INTERESTING: call void @llvm.lifetime.start.p0(6; INTERESTING: call void @llvm.lifetime.end.p0(7 8; RESULT: call void @llvm.lifetime.start.p0(ptr poison)9; RESULT-NEXT: call void @llvm.lifetime.end.p0(ptr poison)10; RESULT-NEXT: ret void11define void @alloca(ptr %ptr) {12  %alloca = alloca i32, align 413  call void @llvm.lifetime.start.p0(ptr %alloca)14  call void @llvm.lifetime.end.p0(ptr %alloca)15  ret void16}17