1 ; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
5 define dso_local void @c(i32 signext %d, i1 %arg) local_unnamed_addr {
7 br i1 %arg, label %while.end, label %while.body.lr.ph
9 while.body.lr.ph: ; preds = %entry
10 %tobool1 = icmp ne i32 %d, 0
13 while.body: ; preds = %while.body, %while.body.lr.ph
14 %call = tail call signext i32 @e()
15 %0 = and i1 %tobool1, undef
16 br i1 %0, label %while.body, label %while.end
18 while.end: ; preds = %while.body, %entry
22 declare signext i32 @e(...) local_unnamed_addr