1 ; RUN: opt < %s -S -passes=debugify,mldst-motion -o - | FileCheck %s
2 ; RUN: opt < %s -S -passes=debugify,mldst-motion -o - --try-experimental-debuginfo-iterators | FileCheck %s
4 %struct.S = type { i32 }
6 define dso_local void @foo(ptr %this, i32 %bar) {
8 %this.addr = alloca ptr, align 8
9 %bar.addr = alloca i32, align 4
10 store ptr %this, ptr %this.addr, align 8
11 store i32 %bar, ptr %bar.addr, align 4
12 %this1 = load ptr, ptr %this.addr, align 8
13 %0 = load i32, ptr %bar.addr, align 4
14 %tobool = icmp ne i32 %0, 0
15 br i1 %tobool, label %if.then, label %if.else
17 if.then: ; preds = %entry
18 store i32 1, ptr %this1, align 4
21 if.else: ; preds = %entry
22 store i32 0, ptr %this1, align 4
25 if.end: ; preds = %if.else, %if.then
30 ; CHECK: if.end: ; preds = %if.else, %if.then
31 ; CHECK-NEXT: %.sink = phi {{.*}} !dbg ![[DBG:[0-9]+]]
32 ; CHECK: ![[DBG]] = !DILocation(line: 0,