aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/operands-to-args-lifetimes.ll
blob: 5db1989968455d69dec3f1418541c31ce2a3e7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llvm-reduce %s -o %t --abort-on-invalid-reduction --delta-passes=operands-to-args --test FileCheck --test-arg %s --test-arg --check-prefix=INTERESTING --test-arg --input-file
; RUN: FileCheck %s --input-file %t --check-prefix=REDUCED

; INTERESTING: store
; REDUCED: define void @test(ptr %a) {
; REDUCED-NEXT: %a1 = alloca i32
; REDUCED-NEXT: call void @llvm.lifetime.start.p0(ptr %a1)
; REDUCED-NEXT: store i32 0, ptr %a
; REDUCED-NEXT: store i32 1, ptr %a
; REDUCED-NEXT: call void @llvm.lifetime.end.p0(ptr %a1)
define void @test() {
  %a = alloca i32
  call void @llvm.lifetime.start.p0(ptr %a)
  store i32 0, ptr %a
  store i32 1, ptr %a
  call void @llvm.lifetime.end.p0(ptr %a)
  ret void
}