4
4
define i1 @incr_sle (i32 %i , i32 %len ) {
5
5
; CHECK-LABEL: define i1 @incr_sle(
6
6
; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
7
- ; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1
8
- ; CHECK-NEXT: [[I_GT_LEN:%.*]] = icmp samesign ugt i32 [[I]], [[LEN]]
9
- ; CHECK-NEXT: [[I_INCR_SGT_LEN:%.*]] = icmp sgt i32 [[I_INCR]], [[LEN]]
10
- ; CHECK-NEXT: [[RES:%.*]] = icmp sle i1 [[I_INCR_SGT_LEN]], [[I_GT_LEN]]
11
- ; CHECK-NEXT: ret i1 [[RES]]
7
+ ; CHECK-NEXT: ret i1 true
12
8
;
13
9
%i.incr = add nsw nuw i32 %i , 1
14
10
%i.gt.len = icmp samesign ugt i32 %i , %len
@@ -20,11 +16,7 @@ define i1 @incr_sle(i32 %i, i32 %len) {
20
16
define i1 @incr_sge (i32 %i , i32 %len ) {
21
17
; CHECK-LABEL: define i1 @incr_sge(
22
18
; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
23
- ; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1
24
- ; CHECK-NEXT: [[I_LT_LEN:%.*]] = icmp samesign ult i32 [[I]], [[LEN]]
25
- ; CHECK-NEXT: [[I_INCR_SLT_LEN:%.*]] = icmp slt i32 [[I_INCR]], [[LEN]]
26
- ; CHECK-NEXT: [[RES:%.*]] = icmp sge i1 [[I_INCR_SLT_LEN]], [[I_LT_LEN]]
27
- ; CHECK-NEXT: ret i1 [[RES]]
19
+ ; CHECK-NEXT: ret i1 true
28
20
;
29
21
%i.incr = add nsw nuw i32 %i , 1
30
22
%i.lt.len = icmp samesign ult i32 %i , %len
@@ -36,11 +28,7 @@ define i1 @incr_sge(i32 %i, i32 %len) {
36
28
define i1 @incr_ule (i32 %i , i32 %len ) {
37
29
; CHECK-LABEL: define i1 @incr_ule(
38
30
; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
39
- ; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1
40
- ; CHECK-NEXT: [[I_GT_LEN:%.*]] = icmp samesign ugt i32 [[I]], [[LEN]]
41
- ; CHECK-NEXT: [[I_INCR_SGT_LEN:%.*]] = icmp sgt i32 [[I_INCR]], [[LEN]]
42
- ; CHECK-NEXT: [[RES:%.*]] = icmp ule i1 [[I_GT_LEN]], [[I_INCR_SGT_LEN]]
43
- ; CHECK-NEXT: ret i1 [[RES]]
31
+ ; CHECK-NEXT: ret i1 true
44
32
;
45
33
%i.incr = add nsw nuw i32 %i , 1
46
34
%i.gt.len = icmp samesign ugt i32 %i , %len
@@ -52,11 +40,7 @@ define i1 @incr_ule(i32 %i, i32 %len) {
52
40
define i1 @incr_uge (i32 %i , i32 %len ) {
53
41
; CHECK-LABEL: define i1 @incr_uge(
54
42
; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
55
- ; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1
56
- ; CHECK-NEXT: [[I_LT_LEN:%.*]] = icmp samesign ult i32 [[I]], [[LEN]]
57
- ; CHECK-NEXT: [[I_INCR_SLT_LEN:%.*]] = icmp slt i32 [[I_INCR]], [[LEN]]
58
- ; CHECK-NEXT: [[RES:%.*]] = icmp uge i1 [[I_LT_LEN]], [[I_INCR_SLT_LEN]]
59
- ; CHECK-NEXT: ret i1 [[RES]]
43
+ ; CHECK-NEXT: ret i1 true
60
44
;
61
45
%i.incr = add nsw nuw i32 %i , 1
62
46
%i.lt.len = icmp samesign ult i32 %i , %len
0 commit comments