We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166074e commit fb8ce45Copy full SHA for fb8ce45
llvm/test/Transforms/NewGVN/flags.ll
@@ -19,3 +19,22 @@ entry:
19
call void @use(i1 %cmp2)
20
ret void
21
}
22
+
23
+define void @test2(i8 %start, i8 %high) {
24
+; CHECK-LABEL: define void @test2
25
+; CHECK-SAME: (i8 [[START:%.*]], i8 [[HIGH:%.*]]) {
26
+; CHECK-NEXT: [[START1:%.*]] = add nsw i8 [[START]], 4
27
+; CHECK-NEXT: [[T1:%.*]] = icmp ult i8 [[START1]], [[HIGH]]
28
+; CHECK-NEXT: call void @use(i1 [[T1]])
29
30
+; CHECK-NEXT: ret void
31
+;
32
+ %start1 = add nsw i8 %start, 4
33
+ %t1 = icmp ult i8 %start1, %high
34
+ call void @use(i1 %t1)
35
36
+ %start2 = add i8 %start, 4
37
+ %t2 = icmp ult i8 %start2, %high
38
+ call void @use(i1 %t2)
39
+ ret void
40
+}
0 commit comments