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