Skip to content

Commit 646fe9b

Browse files
committed
[rebase] update vector IO test (better mlir folding)
br ^bb4(%[[VAL_372]], %[[VAL_381]] : index, i1) was only reached if ond_br %[[VAL_383]], ^bb2, ^bb7 branched to bb2. This implies VAL_381 to be true at that point. So the new output is correct.
1 parent 396acd8 commit 646fe9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Lower/vector-subscript-io.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ subroutine iostat_in_io_loop(k, j, stat)
572572
! CHECK: %[[VAL_387:.*]] = fir.shape %[[VAL_368]], %[[VAL_365]] : (index, index) -> !fir.shape<2>
573573
! CHECK: %[[VAL_388:.*]] = fir.undefined index
574574
! CHECK: %[[VAL_389:.*]] = fir.slice %[[VAL_386]], %[[VAL_388]], %[[VAL_388]], %[[VAL_371]], %[[VAL_368]], %[[VAL_371]] : (i64, index, index, index, index, index) -> !fir.slice<2>
575-
! CHECK: br ^bb4(%[[VAL_372]], %[[VAL_381]] : index, i1)
575+
! CHECK: br ^bb4(%[[VAL_372]], %[[VAL_369]] : index, i1)
576576
! CHECK: ^bb4(%[[VAL_390:.*]]: index, %[[VAL_391:.*]]: i1):
577577
! CHECK: %[[VAL_392:.*]] = arith.cmpi sle, %[[VAL_390]], %[[VAL_373]] : index
578578
! CHECK: %[[VAL_393:.*]] = arith.andi %[[VAL_391]], %[[VAL_392]] : i1

0 commit comments

Comments
 (0)