1 ; RUN: opt < %s -newgvn
4 define void @fn5(i16 signext %p1, i8 signext %p2) nounwind uwtable {
6 br i1 undef, label %if.else, label %if.then
8 if.then: ; preds = %entry
11 if.else: ; preds = %entry
12 %conv = sext i16 %p1 to i32
15 if.end: ; preds = %if.else, %if.then
16 %conv1 = sext i16 %p1 to i32
17 br i1 undef, label %if.then3, label %if.else4
19 if.then3: ; preds = %if.end
22 if.else4: ; preds = %if.end
23 %conv7 = sext i8 %p2 to i32
24 %cmp8 = icmp eq i32 %conv1, %conv7
25 br i1 %cmp8, label %if.then10, label %if.end12
27 if.then10: ; preds = %if.else4
30 if.end12: ; preds = %if.then10, %if.else4, %if.then3
31 %conv13 = sext i8 %p2 to i32