|
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
|
@@ -36,11 +32,7 @@ define i1 @incr_sle_no_nsw_nuw(i32 %i, i32 %len) {
|
36 | 32 | define i1 @incr_sge(i32 %i, i32 %len) {
|
37 | 33 | ; CHECK-LABEL: define i1 @incr_sge(
|
38 | 34 | ; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
|
39 |
| -; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1 |
40 |
| -; CHECK-NEXT: [[I_LT_LEN:%.*]] = icmp samesign ult i32 [[I]], [[LEN]] |
41 |
| -; CHECK-NEXT: [[I_INCR_SLT_LEN:%.*]] = icmp slt i32 [[I_INCR]], [[LEN]] |
42 |
| -; CHECK-NEXT: [[RES:%.*]] = icmp sge i1 [[I_INCR_SLT_LEN]], [[I_LT_LEN]] |
43 |
| -; CHECK-NEXT: ret i1 [[RES]] |
| 35 | +; CHECK-NEXT: ret i1 true |
44 | 36 | ;
|
45 | 37 | %i.incr = add nsw nuw i32 %i, 1
|
46 | 38 | %i.lt.len = icmp samesign ult i32 %i, %len
|
@@ -68,11 +60,7 @@ define i1 @incr_sge_no_nsw_nuw(i32 %i, i32 %len) {
|
68 | 60 | define i1 @incr_ule(i32 %i, i32 %len) {
|
69 | 61 | ; CHECK-LABEL: define i1 @incr_ule(
|
70 | 62 | ; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
|
71 |
| -; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1 |
72 |
| -; CHECK-NEXT: [[I_GT_LEN:%.*]] = icmp samesign ugt i32 [[I]], [[LEN]] |
73 |
| -; CHECK-NEXT: [[I_INCR_SGT_LEN:%.*]] = icmp sgt i32 [[I_INCR]], [[LEN]] |
74 |
| -; CHECK-NEXT: [[RES:%.*]] = icmp ule i1 [[I_GT_LEN]], [[I_INCR_SGT_LEN]] |
75 |
| -; CHECK-NEXT: ret i1 [[RES]] |
| 63 | +; CHECK-NEXT: ret i1 true |
76 | 64 | ;
|
77 | 65 | %i.incr = add nsw nuw i32 %i, 1
|
78 | 66 | %i.gt.len = icmp samesign ugt i32 %i, %len
|
@@ -100,11 +88,7 @@ define i1 @incr_ule_no_nsw_nuw(i32 %i, i32 %len) {
|
100 | 88 | define i1 @incr_uge(i32 %i, i32 %len) {
|
101 | 89 | ; CHECK-LABEL: define i1 @incr_uge(
|
102 | 90 | ; CHECK-SAME: i32 [[I:%.*]], i32 [[LEN:%.*]]) {
|
103 |
| -; CHECK-NEXT: [[I_INCR:%.*]] = add nuw nsw i32 [[I]], 1 |
104 |
| -; CHECK-NEXT: [[I_LT_LEN:%.*]] = icmp samesign ult i32 [[I]], [[LEN]] |
105 |
| -; CHECK-NEXT: [[I_INCR_SLT_LEN:%.*]] = icmp slt i32 [[I_INCR]], [[LEN]] |
106 |
| -; CHECK-NEXT: [[RES:%.*]] = icmp uge i1 [[I_LT_LEN]], [[I_INCR_SLT_LEN]] |
107 |
| -; CHECK-NEXT: ret i1 [[RES]] |
| 91 | +; CHECK-NEXT: ret i1 true |
108 | 92 | ;
|
109 | 93 | %i.incr = add nsw nuw i32 %i, 1
|
110 | 94 | %i.lt.len = icmp samesign ult i32 %i, %len
|
|
0 commit comments