[flang-commits] [flang] [Flang][OpenMP] Add semantic support for Loop Sequences and OpenMP loop fuse (PR #161213)
Ferran Toda via flang-commits
flang-commits at lists.llvm.org
Wed Oct 1 01:54:24 PDT 2025
================
@@ -315,10 +317,10 @@ const parser::Name OmpStructureChecker::GetLoopIndex(
}
void OmpStructureChecker::SetLoopInfo(const parser::OpenMPLoopConstruct &x) {
- auto &optLoopCons = std::get<std::optional<parser::NestedConstruct>>(x.t);
- if (optLoopCons.has_value()) {
+ auto &loopConsList = std::get<std::list<parser::NestedConstruct>>(x.t);
+ if (loopConsList.size() == 1) {
----------------
NouTimbaler wrote:
The method this is in saves the current loop iteration symbol to the context. For me, it didn't make sense to get it on a loop sequence.
https://github.com/llvm/llvm-project/pull/161213
More information about the flang-commits
mailing list