1 ; RUN: opt %s -instcombine 2 3 define i32 @f(i32 %theNumber) { 4 entry: 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 9 if.then: ; preds = %entry 10 %shl = shl nuw i32 %theNumber, 1 11 br label %if.end 12 13 if.end: ; preds = %if.then, %entry 14 %phi = phi i32 [ %shl, %if.then ], [ undef, %entry ] 15 ret i32 %phi 16 } 17 18 declare void @llvm.assume(i1) 19