1 ; RUN: opt -disable-output -passes=loop-rotate -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 ptr [ @foo, %entry ], [ undef, %if.end.i ]
11 %call3.i.i = call zeroext i1 %0(ptr nonnull dereferenceable(16) undef, ptr 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 ptr 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(ptr, ptr) #1 align 32
25 attributes #0 = { nounwind }
26 attributes #1 = { readonly }