1 ; RUN: opt -disable-output -loop-rotate -enable-mssa-loop-dependency -verify-memoryssa %s
4 ; Function Attrs: nounwind
5 define dso_local void @bar() local_unnamed_addr #0 align 32 {
7 br label %looplabel.exit.i
9 looplabel.exit.i: ; preds = %if.end.i, %entry
10 %0 = phi i1 (i32*, i32*)* [ @foo, %entry ], [ undef, %if.end.i ]
11 %call3.i.i = call zeroext i1 %0(i32* nonnull dereferenceable(16) undef, i32* nonnull undef)
12 br i1 %call3.i.i, label %if.end.i, label %label.exit
14 if.end.i: ; preds = %looplabel.exit.i
15 %tobool.i = icmp eq i32* undef, null
16 br label %looplabel.exit.i
18 label.exit: ; preds = %looplabel.exit.i
22 ; Function Attrs: readonly
23 declare dso_local i1 @foo(i32*, i32*) #1 align 32
25 attributes #0 = { nounwind }
26 attributes #1 = { readonly }