@@ -407,7 +407,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
407407 return ;
408408
409409 const parser::OmpClauseList *beginClauseList = nullptr ;
410- const parser::OmpClauseList *middleClauseList = nullptr ;
411410 const parser::OmpClauseList *endClauseList = nullptr ;
412411 common::visit (
413412 common::visitors{
@@ -422,28 +421,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
422421 beginClauseList =
423422 &std::get<parser::OmpClauseList>(beginDirective.t );
424423
425- // For now we check if there is an inner OpenMPLoopConstruct, and
426- // extract the size clause from there
427- const auto &nestedOptional =
428- std::get<std::optional<parser::NestedConstruct>>(
429- ompConstruct.t );
430- assert (nestedOptional.has_value () &&
431- " Expected a DoConstruct or OpenMPLoopConstruct" );
432- const auto *innerConstruct =
433- std::get_if<common::Indirection<parser::OpenMPLoopConstruct>>(
434- &(nestedOptional.value ()));
435- if (innerConstruct) {
436- const auto &innerLoopConstruct = innerConstruct->value ();
437- const auto &innerBegin =
438- std::get<parser::OmpBeginLoopDirective>(
439- innerLoopConstruct.t );
440- const auto &innerDirective =
441- std::get<parser::OmpLoopDirective>(innerBegin.t );
442- if (innerDirective.v == llvm::omp::Directive::OMPD_tile) {
443- middleClauseList =
444- &std::get<parser::OmpClauseList>(innerBegin.t );
445- }
446- }
447424 if (auto &endDirective =
448425 std::get<std::optional<parser::OmpEndLoopDirective>>(
449426 ompConstruct.t )) {
@@ -457,9 +434,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
457434 assert (beginClauseList && " expected begin directive" );
458435 clauses.append (makeClauses (*beginClauseList, semaCtx));
459436
460- if (middleClauseList)
461- clauses.append (makeClauses (*middleClauseList, semaCtx));
462-
463437 if (endClauseList)
464438 clauses.append (makeClauses (*endClauseList, semaCtx));
465439 };
0 commit comments