[flang] Make use of do variable more consistent.
authorSlava Zakharin <szakharin@nvidia.com>
Thu, 1 Sep 2022 19:33:39 +0000 (12:33 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Thu, 1 Sep 2022 22:46:19 +0000 (15:46 -0700)
commit8fbc7e0869293b9b61b7bce3edfa4de05b1c549d
treecdbc4ab7c1b8cb4506c8e6aa63cd5a7cd684d686
parentf6d6e33abc2e8657b04721841d15191b7c3ff3d1
[flang] Make use of do variable more consistent.

Instead of using the IV block argument of the do-loop we will use
the do-variable value loaded from its location. This usage is consistent
with other uses of the do-variable inside the loop.

Differential Revision: https://reviews.llvm.org/D133140
flang/lib/Lower/Bridge.cpp
flang/test/Lower/OpenMP/omp-parallel-private-clause-fixes.f90
flang/test/Lower/OpenMP/omp-wsloop-variable.f90
flang/test/Lower/array-expression-slice-1.f90
flang/test/Lower/do_loop.f90
flang/test/Lower/infinite_loop.f90
flang/test/Lower/mixed_loops.f90