1; RUN: opt %s -instcombine
2
3define i32 @f(i32 %theNumber) {
4entry:
5  %cmp = icmp sgt i32 %theNumber, -1
6  call void @llvm.assume(i1 %cmp)
7  br i1 true, label %if.then, label %if.end
8
9if.then:                                          ; preds = %entry
10  %shl = shl nuw i32 %theNumber, 1
11  br label %if.end
12
13if.end:                                           ; preds = %if.then, %entry
14  %phi = phi i32 [ %shl, %if.then ], [ undef, %entry ]
15  ret i32 %phi
16}
17
18declare void @llvm.assume(i1)
19