[flang-commits] [flang] [flang][OpenMp] Fix LINEAR steps and ALLOCATABLE loop iteration variables (PR #234112)
Aditya Trivedi via flang-commits
flang-commits at lists.llvm.org
Wed Oct 21 07:50:33 PDT 2026
================
@@ -2464,14 +2464,9 @@ static void genSimdImplicitLinear(
variable) != clauseOps.linearVars.end())
continue;
- // TODO: Implicit linearization is skipped if iv is a pointer
- // or an allocatable, due to potential mismatch between the linear
- // variable type (example !fir.ref<!fir.box<!fir.heap<i32>>>)
- // and the linear step size (example: i64). Handle this type mismatch
- // gracefully.
+ // TODO: Implicit linearization is skipped if iv is a pointer.
if (loopVar->test(Fortran::semantics::Symbol::Flag::OmpLinear) &&
- !(Fortran::semantics::IsAllocatableOrPointer(*loopVar) ||
- Fortran::semantics::IsAllocatableOrPointer(loopVar->GetUltimate()))) {
+ !Fortran::semantics::IsPointer(loopVar->GetUltimate())) {
----------------
adit4443ya wrote:
done
https://github.com/llvm/llvm-project/pull/234112
More information about the flang-commits
mailing list